Telegram bot - telegraf vs telebot
Asked Answered
B

2

6

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

Bristling answered 25/3, 2017 at 20:16 Comment(2)
what is your preferred language?Mutate
Just came into this question since I was also looking for some kind of recommendation on each of them. Am I missing somethings why his language wouldn't be javascript? he tagged node.js and both of the options he gave are written in javascriptWhitley
B
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.

Beta answered 28/1, 2018 at 11:19 Comment(0)
Q
0

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

Quinone answered 22/8, 2017 at 10:45 Comment(1)
1. telegraf uses js, not ts (if referred to typescript). 2. telebot is for node.js, telepot is for pythonWhitley

© 2022 - 2024 — McMap. All rights reserved.