Use a more sensible limit

Lonami 2017-09-23 10:00:13 +02:00
parent 6eb299adf1
commit 960ba65c10

@ -8,7 +8,7 @@ from telethon.tl.types import ChannelParticipantsSearch
from time import sleep
offset = 0
limit = 100
limit = 50
all_participants = []
while True:
@ -18,7 +18,7 @@ while True:
if not participants.users:
break
all_participants.extend(participants.users)
offset += limit
offset += len(participants.users)
sleep(1)
```