Questions tagged [telegram-webhook]

Telegram webhooks allows to let a Telegram Bot be notified of new and changed messages and other events, using the HTTPS webhook callbacks.

What is it?

Telegram webhooks allows to let a Telegram Bot be notified of new and changed messages and other events, using the HTTPS webhook callbacks.

See also

257 questions
23
votes
3 answers

Telegram bot message read callback

Is it possible to get callbacks in the webhook whenever a user reads the message sent by the bot, using Telegram bot API? It is not documented, and I cannot figure out a way how to achieve it.
user7518s
  • 452
  • 1
  • 7
  • 16
17
votes
8 answers

Clear "pending_update_count" in Telegram Bot

I want to clear all pending_update_count in my bot! The output of below command : https://api.telegram.org/botxxxxxxxxxxxxxxxx/getWebhookInfo Obviously I replaced the real API token with xxx is this : { "ok":true,"result": { "url":"", …
Hamed Kamrava
  • 12,359
  • 34
  • 87
  • 125
14
votes
3 answers

What is the limit of sending messages from a telegram bot

I would like to understand the limits that Telegram bot API is imposing on message sending. I know that currantly you cannot send more than 30 messages to differant users. I have many bots running on the same server (Webhooks & Pull Updates), does…
Zaid Al-Omari
  • 711
  • 1
  • 8
  • 17
10
votes
1 answer

How to run firebase (functions) emulator on https instead of http?

Would anyone know if there is a way to initialize a Firebase function (using emulator to debug locally) with an https address instead of the default http? I'm trying to debug a Telegram bot-related script and Telegram only allows https…
10
votes
2 answers

Prevent a Telegram bot from being added to any group or channel (allow adding it to whitelisted groups/channels)

As far as I read the Telegram Bot API's docs, Telegram do not limit the calls to your webhook callback in any way. I am creating a Telegram Bot that will be available only for groups and channels that I will whitelist. I can filter out the messages…
9
votes
1 answer

How to get Telegram channels updates (posts) with api?

I want to get Telegram channels updates (posts) with api by php! (I am not channels admin) I am not sure can I do this with bot or not? if it is not possible how can do that with telegram api ?
SoheilYou
  • 907
  • 5
  • 23
  • 43
8
votes
1 answer

Telegram bot api : issue with GIF upload/download size

Faced with issue, when i am trying to send GIF to my bot, but bot can't access to original size of image. Seems like telegram servers converting it to mp4 (it is a good idea, looks fine) and when i trying to download it - it always looks like a…
Nigrimmist
  • 10,289
  • 4
  • 52
  • 53
6
votes
2 answers

Change telegram bot name on the fly

I have a telegram bot that messages on a group. I want the telegram bot to change its “name” from time to time - just like a user can. Is this possible? This means that when I see a message from the bot it can say “ABCbot”, but later it can say…
6
votes
2 answers

Telegram Bot API Webhooks with Go, GoLang on Heroku

I use go-telegram-bot-api for building a Telegram Bot and deploying it on Heroku. I need to set Webhooks as I used to do in Python like in this Python case. Can't understand how to set Webhooks in go-telegram-bot-api without providing certificate…
franchb
  • 1,174
  • 4
  • 19
  • 42
6
votes
1 answer

How can create menu for telegram bot in bot father?

I'm new in telegram bot and see this bot: that but when type /start show menu to me and with out type slash to command just fire the menu button,how can i create menu in telegram like that bot?
behzad razzaqi
  • 127
  • 1
  • 5
  • 14
6
votes
2 answers

How set the Url of the created game in Telegram BotFather?

I have created a new game in BotFather Telegram. But there was not any question about game link. Also, there is not any parameter to set game url in "sendGame" function. How can I set my gameUrl behind the created game in BotFather? I should say, I…
OmG
  • 18,337
  • 10
  • 57
  • 90
5
votes
1 answer

Cannot use module aioflask(Python). ImportError: cannot import name '_app_ctx_stack' from 'flask.ctx'

I need to use aioflask for seting webhooks for my telegram-bot. Here my code, where I set webhook: from aioflask import Flask, request ... app = Flask(__name__) ... @app.route('/') async def webhook(): await bot.delete_webhook() await…
Tomas Angelo
  • 63
  • 1
  • 6
5
votes
1 answer

Telegram Bot API: How to get MIME type of received photos

How do I get the MIME type of photos that users send to my bot? I am using the Telegram Bot API through Telegraf. My bot is saving file id's from photos and videos that users are sending it and I want to be able to download the files later. The…
Bert
  • 51
  • 2
5
votes
1 answer

Is Telegram username unique?

When I work over bot development, I found that messages that comes from user have some field called username, e. g. { update_id: 123567890, message: { message_id: 1, from: { id: 1234567890, is_bot:…
Limbo
  • 2,123
  • 21
  • 41
4
votes
1 answer

How to handle messages in a Telegram Bot?

My goal is to make a Telegram Bot using Python that does the following: The user types a command The bot explains what the user should type next. The user types certain information I use that info to fetch a value in a python dictionary. The bot…
1
2 3
17 18