Telegram bot message read callback

13,343

Solution 1

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]

Solution 2

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

Solution 3

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)!

Share:
13,343

Related videos on Youtube

user7518s
Author by

user7518s

Updated on January 08, 2020

Comments

  • user7518s
    user7518s over 4 years

    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
    user7518s over 7 years
    Ok, but they do have green checks--one check and two checks--in the interface. How can I get them via API?
  • user7518s
    user7518s over 7 years
    Can I send messages to users via Telegram API?
  • ManzoorWani
    ManzoorWani over 7 years
    Yes, as a Telegram user not as a Bot.
  • cosmoonot
    cosmoonot about 7 years
    @bimbari you should be able to achieve that with the regular API.
  • Giorgio Robino
    Giorgio Robino over 4 years
    @ManzoorWani But you can send messages to Bot-users ALSO as a Bot.
  • ManzoorWani
    ManzoorWani over 4 years
    @GiorgioRobino yes that's true, because the two use different APIs