mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 10:53:44 +03:00
Use a more sensible limit
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)
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user