2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 04:48:06 +00:00

Update get_history.py

This commit is contained in:
Dan 2018-10-09 13:51:29 +02:00
parent bd121be76d
commit 7b76751e8f

View File

@ -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