From 2325391d944f04e74a5a9c9b8a9435a3656e463a Mon Sep 17 00:00:00 2001 From: Pavel Alimpiev Date: Tue, 18 Dec 2018 15:29:13 +0300 Subject: [PATCH] Update quick_start.rst --- docs/source/quick_start.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/source/quick_start.rst b/docs/source/quick_start.rst index a73640b4..07224d19 100644 --- a/docs/source/quick_start.rst +++ b/docs/source/quick_start.rst @@ -9,32 +9,32 @@ At first you have to import all necessary modules .. literalinclude:: ../../examples/echo_bot.py :language: python - :lines: 1-4 + :lines: 6-8 Then you have to initialize bot and dispatcher instances. Bot token you can get from `@BotFather `_ .. literalinclude:: ../../examples/echo_bot.py :language: python - :lines: 10-12 + :lines: 10-17 Next step: interaction with bots starts with one command. Register your first command handler: .. literalinclude:: ../../examples/echo_bot.py :language: python - :lines: 15-17 + :lines: 21-25 If you want to handle all messages in the chat simply add handler without filters: .. literalinclude:: ../../examples/echo_bot.py :language: python - :lines: 27-29 + :lines: 28-30 Last step: run long polling. .. literalinclude:: ../../examples/echo_bot.py :language: python - :lines: 32-33 + :lines: 33-34 Summary ------- @@ -42,4 +42,4 @@ Summary .. literalinclude:: ../../examples/echo_bot.py :language: python :linenos: - :lines: -19,27- \ No newline at end of file + :lines: -19,27-