td icon indicating copy to clipboard operation
td copied to clipboard

Can't get actual message viewers and forward counts of message

Open lis367 opened this issue 9 months ago • 3 comments

Hello everyone! I'm trying to get the current number of views and forwards for a message from a channel, but I can’t find the right way to do it. When I view a message using the initial OpenChat request, then fetch the message list with GetChatHistory and check interactions via Message with objects like MessageForwardInfo and MessageInteractionInfo, I always get outdated statistics, even though I see completely different numbers in the actual app. I can’t use GetMessageViewers because canGetViewers is always false, and the same applies to GetMessagePublicForwards and GetMessageStatistics, where canGetStatistics == false. But I can see real updating statistic in real app. I’d appreciate any help, thanks in advance!

lis367 avatar Apr 08 '25 17:04 lis367

Messages must be viewed using viewMessages, openChat is irrelevant. Updated counters are sent by TDLib whenever appropriate.

levlam avatar Apr 10 '25 10:04 levlam