Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lis367 opened this issue Apr 8, 2025 · 1 comment
Open

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

lis367 opened this issue Apr 8, 2025 · 1 comment

Comments

@lis367
Copy link

lis367 commented Apr 8, 2025

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!

@levlam
Copy link
Contributor

levlam commented Apr 10, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants