Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know if user has seen a message sent by my bot in Telegram?

Tags:

telegram-bot

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.

like image 907
sazary Avatar asked Jun 25 '16 21:06

sazary


3 Answers

That's currently not possible.

like image 63
Maak Avatar answered Oct 18 '22 03:10

Maak


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
like image 20
Khalil Laleh Avatar answered Oct 18 '22 05:10

Khalil Laleh


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.

like image 45
eos1d3 Avatar answered Oct 18 '22 04:10

eos1d3