sazary
sazary

Reputation: 966

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.

Upvotes: 9

Views: 9769

Answers (5)

it is not possible yet , you might want to search for Madeline bot

Upvotes: 0

eos1d3
eos1d3

Reputation: 423

Telegram Bot API has limit functionality. There is absolutely no way to get message view count at the time of this comment.

Usually TDLib can be used instead of Telegram Bot. It is Telegram client library. You can use it directly or make it as services for BOT to call.

For example. use TdApi.GetMessage to get the message, and the returned message has field of interactionInfo which contains forwardCount or viewCount.

Upvotes: 1

sadegh zarghami
sadegh zarghami

Reputation: 41

perhaps this answer help you :

in the end of your message place link example : yoursite.com\checkvisit.php?id=1234

when user open message link automatic run for telegram ...

you can understand message was read

you must in checkvisit.php set to check db if id exist and not read set it to read

then id in db remove or disable

but this method simple - telegram must add 1 parameter to return this

sorry my english not good

Upvotes: 0

Khalil Laleh
Khalil Laleh

Reputation: 1238

I'm using this solution.

  1. Create a channel specially for your bot
  2. Let your robot send message from this channel to users, you can use forward method.
  3. Now you can see how many users have seen your message

Upvotes: 6

Maak
Maak

Reputation: 5038

That's currently not possible.

Upvotes: 6

Related Questions