'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.
Solution 1:[1]
That's currently not possible.
Solution 2:[2]
I'm using this solution.
- Create a channel specially for your bot
- Let your robot send message from this channel to users, you can use forward method.
- Now you can see how many users have seen your message
Solution 3:[3]
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
.
Solution 4:[4]
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
Solution 5:[5]
it is not possible yet , you might want to search for Madeline bot
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Maak |
Solution 2 | Khalil Laleh |
Solution 3 | eos1d3 |
Solution 4 | sadegh zarghami |
Solution 5 | mohammad javad alizadeh |