Questions tagged [telegram-bot]

The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram which is an instant-messaging app with documented API. Use this tag if you're writing a telegram bot and have a specific question regarding the Bot API.

Available methods

  • getMe
  • sendMessage
  • forwardMessage
  • sendPhoto
  • sendAudio
  • sendDocument
  • sendSticker
  • sendVideo
  • sendVideoNote
  • sendVoice
  • sendLocation
  • sendVenue
  • sendContact
  • sendChatAction
  • getUserProfilePhotos
  • getUpdates
  • setWebhook
  • removeWebhook
  • getFile

Links:

4905 questions
7
votes
4 answers

How to get Telegram Bot statistics?

Does exists any way to get bot's statistics with API or with web interface or with BotFather? Or I must to collect statistics by processing updates from bot API? ps. Currently I store statistics in Redis by processing updates from bot API, but I…
Nick
  • 9,735
  • 7
  • 59
  • 89
7
votes
2 answers

Telegram Bot getUpdates VS setWebhook

I want to develop a bot for a business! I don't know that using getUpdates method for develop a windows desktop application and run that on vps (by https://github.com/MrRoundRobin/telegram.bot library) or using setWebhook method to develop bot with…
Hadi Akbarzadeh
  • 750
  • 10
  • 18
7
votes
2 answers

Telegram-bot data storage

I'm developing a telegram bot which needs to store datas for each user. Is there a way to store them directly into the phone or something particular or the only way is to save them server-side and call them back for every call? Thanks
Pier Giorgio Misley
  • 5,305
  • 4
  • 27
  • 66
7
votes
5 answers

How to know if user has seen a message sent by my bot in Telegram?

I'm developing a Telegram bot, and I want to know whether a user, that has started a private chat with my bot, has seen a certain message sent by bot, and to know when has he seen it. Is it possible to do so? Thank you very much.
sazary
  • 906
  • 1
  • 9
  • 20
7
votes
4 answers

Anyway for setting Telegram Webhook without setting up https connection

I want to setup Telegram Webhook but I don't have https URL, I don't want to deal with ssl certificates either. Can I solve this problem by using https URL or without setting https certificate up? Telegram webhook desc:…
ahmet
  • 363
  • 2
  • 5
  • 16
7
votes
4 answers

firebase.intializeApp is not a function

so im stuck at this error. Im making a telegram bot with the telegram bot api and now im trying to set up a firebae DB to save the score of a group member - so the score is not resetted after restarting the bot. can someone tell me what the problem…
fak3d
  • 71
  • 1
  • 3
7
votes
1 answer

Telegram Bot webhook really slow

I've created a telegram bot and set a webhook as described in the docs. For testing purposes I've set it up so once you send the bot a message it replies back with the same message. Now the issue I am having is that the updates from telegram are…
user1686342
  • 1,265
  • 1
  • 18
  • 24
7
votes
3 answers

Telegram bot - receive photo URL

When a user send an image via Telegram bot it there any way to get the image URL? or I just need to save the image somewhere?
Dan Naim
  • 161
  • 1
  • 3
  • 14
7
votes
1 answer

Telegram bot api keyboard

I have problem with Telegram Bot Api and with "ReplyKeyboard". I'm using Python 2.7 and I send post request: TelegramAPI.post(TELEGRAM_URL + "sendMessage", data=dict(chat_id=CHAT_ID, text="", keyboard={'keyboard': keyboard, 'one_time_keyboard':…
7
votes
3 answers

Telegram Bot API Webhooks Self-signed Certificate issue

I'm working on a Ruby language server to manage multiple Telegram Bots via setwebhooks BTW, I'll delivery the server as opensource at BOTServer PROBLEM I have troubles receiving webhook updates from Telegram Bot API Server. I have set a webhook…
Giorgio Robino
  • 2,148
  • 6
  • 38
  • 59
7
votes
4 answers

How to use getUpdates after setWebhook in Telegram Bot API

I use setWebhook for my telegram-bot and now I need to use getUpdates. I have read the docs, and they say, that I can use only one method. The problem is, that I have in console: {"ok":false,"error_code":409,"description":"Error: Conflict: another…
Leon
  • 6,316
  • 19
  • 62
  • 97
7
votes
3 answers

Telegram : How can show welcome message for new join bot

I create new bot in telegram bot ,and do steps like here :- https://core.telegram.org/bots# But now i need when any new user join in my bot, i need to show him welcome message. How can do that ?
user3704392
7
votes
7 answers

Calling Telegram API to create a feedreader bot

I have seen New API for bots are enabled to create custome bots,I have seen some sources such as this and this I have also read about @fatherbot which is about registering bots,I also searched about some examples about telegram bots such as this…
Majid Hojati
  • 1,740
  • 4
  • 29
  • 61
6
votes
1 answer

How to send a InlineKeyboardButton in telegram bot, periodically?

I'm trying to send an InlineKeyboardHandler every x second. for that purpose I used updater.job_queue.run_repeating but it acts weird. The keyboard doesn't work unless I have another interaction with the bot first. I've written a simple piece of…
parvij
  • 1,381
  • 3
  • 15
  • 31
6
votes
1 answer

how to read/receive telegram channel messages in my telegram bot?

i'm trying to create a bot which can read/receive all messages in a specific channel and send them to me . my problem here is that i can't find a way to access those messages in my bot important thing is: i'm not admin or creator of that channel i…
maryam
  • 61
  • 1
  • 2