Telegram bot message read callback
Asked Answered
D

3

25

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.

Docilu answered 16/2, 2017 at 0:12 Comment(0)
B
12

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]

Boorish answered 16/2, 2017 at 10:55 Comment(4)
Can I send messages to users via Telegram API?Docilu
Yes, as a Telegram user not as a Bot.Boorish
@Boorish But you can send messages to Bot-users ALSO as a Bot.Flagellate
@GiorgioRobino yes that's true, because the two use different APIsBoorish
F
7

As other answered, the feature you are looking for is not available via the Bot API.

That's, for me, conceptually, a BUG, or at least a Change request (CR).

Using Telegram API instead of Bot API is a workaround. :(

We need to ask Telegram the CR, implicitly pointed out on the original question by @user7518s.

BTW: it could be great to have a callback for voice/media messages. In case of a long audio (or video) message, for example, it could be useful to know if the message is completely listened (or watched) with timestamp of interruption in case of a message partially listened (watched)!

Flagellate answered 7/1, 2020 at 9:57 Comment(0)
D
5

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

Demolish answered 16/2, 2017 at 1:4 Comment(2)
Ok, but they do have green checks--one check and two checks--in the interface. How can I get them via API?Docilu
@bimbari you should be able to achieve that with the regular API.Demolish

© 2022 - 2024 — McMap. All rights reserved.