td icon indicating copy to clipboard operation
td copied to clipboard

How to update the number of subscribers in groups, supergroups and channels

Open yuminekosan opened this issue 1 year ago • 5 comments

Can you give me a hint, please? How to correctly update the number of subscribers in chats so that it corresponds to the actual data. Because now when using GetSupergroup, GetSupergroupFullInfo, GetBasicGroupFullInfo, GetBasicGroup methods we noticed that the MemberCount field has irrelevant information. Because we are looking at the data from tdlib and the data on the mobile device on chats, and they are different

yuminekosan avatar Dec 19 '24 12:12 yuminekosan

It is updated automatically wherever needed, depending on user actions. There is no way to forcely get actual data by polling it using any request.

levlam avatar Dec 19 '24 12:12 levlam

What actions should a user perform to receive an update on the number of subscribers in the chat?

yuminekosan avatar Dec 19 '24 13:12 yuminekosan

There is no guaranteed way to update it. It is updated automatically from time to time when the chat is active.

levlam avatar Dec 19 '24 16:12 levlam

So, when the chat is open, I need to handle some tdlib update to get the current number of subscribers? could you please tell me which update I need to receive?

yuminekosan avatar Dec 20 '24 10:12 yuminekosan

The number of supergroup/channel members is available in supergroupFullInfo and basicGroup objects.

levlam avatar Dec 20 '24 12:12 levlam