From c89130b5c6c45bd52d37d6cfc801a532e77d4d7e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 24 Feb 2018 17:58:21 +0100 Subject: [PATCH] Update docs examples --- docs/source/start/BasicUsage.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/start/BasicUsage.rst b/docs/source/start/BasicUsage.rst index c602b413..db8ad2cf 100644 --- a/docs/source/start/BasicUsage.rst +++ b/docs/source/start/BasicUsage.rst @@ -119,7 +119,7 @@ Here some examples: ) except FloodWait as e: # 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) continue @@ -127,7 +127,7 @@ Here some examples: break # No more participants left users.extend(participants.users) - offset += len(participants.users) + offset += limit - Get history of a chat: @@ -159,6 +159,6 @@ Here some examples: break # No more messages left history.extend(messages.messages) - offset += len(messages.messages) + offset += limit .. _bot-like: https://core.telegram.org/bots/api#available-methods \ No newline at end of file