td icon indicating copy to clipboard operation
td copied to clipboard

How to get list of post reactions using JSON interface?

Open evgenijst21 opened this issue 2 years ago • 3 comments

Hello, my problem is that I need to get a list of reactions for statistics, but the json interface does not contain an updateMessageReactions object. How can i do this?

evgenijst21 avatar Jul 25 '22 15:07 evgenijst21

You will receive updateMessageInteractionInfo when appropriate.

levlam avatar Jul 25 '22 16:07 levlam

There are no reactions. updateMessageInteractionInfo has a messageInteractionInfo object which has a view_count and a forward_count. There are no reactions. I am attaching the link https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1message_interaction_info.html I tried getChatHistory, getMessage, tried messages from channel and from group. The td_receive method reacts to all updates, but not to reactions.

evgenijst21 avatar Jul 25 '22 16:07 evgenijst21

TDLib is not suitable for your task. It will send updateMessageInteractionInfo only when it is really needed for the real user.

levlam avatar Jul 25 '22 16:07 levlam