skip to Main Content

I am looking to make a bot using telegram api, so I found two good apis in nodejs but I couldn’t find the difference between them:

  1. TeleGraf
  2. TeleBot

What is the difference and why should I prefer one over the other? Or should I use another API to do a bot in telegram?

Thank you

2

Answers


  1. There is question about your language 🙂
    As is known, TeleGraf uses js (ts) and TeleBot uses python
    For js you can also use node-telegram-bot-api from yagop

    Login or Signup to reply.
  2. The official sample section for node.js contains a list of (somewhat) popular options.

    Telegraf. Full Telegram Bot API support, including games and inline mode.

    In my perspective, Telegraf is a more complete & active library. And is thus likely to receive more timely updates when the API changes, in the end it all depends on your use-case though; but Telegraf should have you covered in most(/all) cases.

    On the other hand, Telebot might take an approach that’s simpler to use for you; so it all depends on your personal opinion in the end.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search