mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Update get_history.py
This commit is contained in:
parent
bd121be76d
commit
7b76751e8f
1 changed files with 1 additions and 2 deletions
|
|
@ -33,8 +33,7 @@ app.start()
|
|||
while True:
|
||||
try:
|
||||
m = app.get_history(target, offset_id=offset_id)
|
||||
except FloodWait as e:
|
||||
# For very large chats the method call can raise a FloodWait
|
||||
except FloodWait as e: # For very large chats the method call can raise a FloodWait
|
||||
print("waiting {}".format(e.x))
|
||||
time.sleep(e.x) # Sleep X seconds before continuing
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue