From 7520218e467005e47a52fa1b55d33752fe87dcea Mon Sep 17 00:00:00 2001 From: Lonami Date: Wed, 27 Sep 2017 12:49:11 +0200 Subject: [PATCH] Sleep seems to be optional --- Retrieving-all-chat-members.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Retrieving-all-chat-members.md b/Retrieving-all-chat-members.md index 772ad0d..5c30cb2 100644 --- a/Retrieving-all-chat-members.md +++ b/Retrieving-all-chat-members.md @@ -8,7 +8,7 @@ from telethon.tl.types import ChannelParticipantsSearch from time import sleep offset = 0 -limit = 50 +limit = 100 all_participants = [] while True: @@ -19,7 +19,7 @@ while True: break all_participants.extend(participants.users) offset += len(participants.users) - sleep(1) + # sleep(1) # This line seems to be optional, no guarantees! ``` Note that `GetParticipantsRequest` returns [`ChannelParticipants`](https://lonamiwebs.github.io/Telethon/constructors/channels/channel_participants.html), which may have more information you need (like the role of the participants, total count of members, etc.) \ No newline at end of file