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:
- TeleGraf
- 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
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
The official sample section for node.js contains a list of (somewhat) popular options.
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.