Hello. Thanks for the wonderful library.
Is there any way to retrieve a megagroup's exact participant count?
I tried
dialogs = client.get_dialogs(limit=200)
for dia in dialogs:
if isinstance(dia.entity, Channel):
if dia.entity.megagroup:
print(dia.entity.participants_count) # None for any megagroup
Also tried
participants = client(GetParticipantsRequest(
channel_id, ChannelParticipantsSearch(''), 0, 1,
hash=0
))
max_limit = participants.count # returns 200 even though the real number of participants is over 100k
I've searched through related issues and docs but didn't find any solution, unfortunately.
client.get_participants(where, limit=0).total.
@Lonami thank you
Most helpful comment
client.get_participants(where, limit=0).total.