Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telegram bot - telegraf vs telebot

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 bitween them: 1. TeleGraf 2. TeleBot

what is the difference and why should I preffer one over the other? or should I use another api to do a bot in telegram?

thank you

like image 691
DramboHero Avatar asked Nov 09 '22 00:11

DramboHero


1 Answers

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.

like image 143
Jonas D. Avatar answered Nov 14 '22 22:11

Jonas D.