mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-14 10:02:25 +03:00
Fix for checking result before processing next iteration:
parent
f7bb5d3cb3
commit
8a235d53bc
|
@ -21,8 +21,8 @@ while True:
|
|||
dialogs.extend(result.dialogs)
|
||||
users.extend(result.users)
|
||||
chats.extend(result.chats)
|
||||
last_date = min(msg.date for msg in result.messages)
|
||||
if not result.dialogs:
|
||||
if not result.messages:
|
||||
break
|
||||
last_date = min(msg.date for msg in result.messages)
|
||||
sleep(2)
|
||||
```
|
Loading…
Reference in New Issue
Block a user