We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd121be commit 7b76751Copy full SHA for 7b76751
examples/get_history.py
@@ -33,8 +33,7 @@
33
while True:
34
try:
35
m = app.get_history(target, offset_id=offset_id)
36
- except FloodWait as e:
37
- # 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
38
print("waiting {}".format(e.x))
39
time.sleep(e.x) # Sleep X seconds before continuing
40
continue
0 commit comments