Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telegram bot message read callback

Tags:

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.

like image 921
user7518s Avatar asked Feb 16 '17 00:02

user7518s


People also ask

Can Telegram BOT read messages?

The FAQ reads: All bots, regardless of settings, will receive: All service messages. All messages from private chats with users.

Can Telegram bots make calls?

At present bots can't start video/voice calls, but there are some libraries such as tgcalls and pytgcalls were you can programmatically achieve it through a user.

What is callback query?

CallbackQuery. This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present.


2 Answers

Telegram actually provides two APIs:

  • The Bot API allows you to easily create programs that use Telegram messages for an interface.
  • The Telegram API allows you to build your own customized Telegram clients.

The feature you are looking for is not available via the Bot API, rather it's only available via Telegram API.

Also

1 check = message delivered to the Telegram cloud (and is waiting for your chat partner to see it in Telegram), notification sent (if the recipient is accepting notifications).

2 checks = message read (recipient opened Telegram and the conversation with your message).

We don't have an additional status for 'message delivered to device', because you can use Telegram on multiple devices simultaneously. Since you don't know which one of their devices the person is actually using, delivery to one of the devices becomes irrelevant. [Telegram Support]

like image 54
ManzoorWani Avatar answered Oct 19 '22 10:10

ManzoorWani


At the moment this feature is not available with Telegram Bot API.

We don‘t have a ’delivered to device' status for messages because Telegram can run on as many devices as you want. So which particular one would that check mean?

FAQ: https://telegram.org/faq#q-what-do-the-green-checks-mean


EDIT

You can achieve the read status of messages using the regular Telegram API (https://core.telegram.org/methods)


Related topic

like image 25
cosmoonot Avatar answered Oct 19 '22 11:10

cosmoonot