Update docs examples

This commit is contained in:
Dan 2018-02-24 17:58:21 +01:00
parent 1677220f17
commit c89130b5c6

View File

@ -119,7 +119,7 @@ Here some examples:
) )
except FloodWait as e: except FloodWait as e:
# Very large channels will trigger FloodWait. # Very large channels will trigger FloodWait.
# In that case wait X seconds before continuing # When happens, wait X seconds before continuing
time.sleep(e.x) time.sleep(e.x)
continue continue
@ -127,7 +127,7 @@ Here some examples:
break # No more participants left break # No more participants left
users.extend(participants.users) users.extend(participants.users)
offset += len(participants.users) offset += limit
- Get history of a chat: - Get history of a chat:
@ -159,6 +159,6 @@ Here some examples:
break # No more messages left break # No more messages left
history.extend(messages.messages) history.extend(messages.messages)
offset += len(messages.messages) offset += limit
.. _bot-like: https://core.telegram.org/bots/api#available-methods .. _bot-like: https://core.telegram.org/bots/api#available-methods