Merge pull request #209 from jr-minnaar/patch-1

Small typo in docs
This commit is contained in:
Alex Root Junior 2019-09-12 11:47:29 +03:00 committed by GitHub
commit 35cf54078e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -1,28 +1,28 @@
.. Autogenerated file at 2018-10-28 19:31:48.335963 .. Autogenerated file at 2018-10-28 19:31:48.335963
========================= =========================
Adwanced executor example Advanced executor example
========================= =========================
!/usr/bin/env python3 !/usr/bin/env python3
**This example is outdated** **This example is outdated**
In this example used ArgumentParser for configuring Your bot. In this example used ArgumentParser for configuring Your bot.
Provided to start bot with webhook: Provided to start bot with webhook:
python adwanced_executor_example.py \ python advanced_executor_example.py \
--token TOKEN_HERE \ --token TOKEN_HERE \
--host 0.0.0.0 \ --host 0.0.0.0 \
--port 8084 \ --port 8084 \
--host-name example.com \ --host-name example.com \
--webhook-port 443 --webhook-port 443
Or long polling: Or long polling:
python adwanced_executor_example.py --token TOKEN_HERE python advanced_executor_example.py --token TOKEN_HERE
So... In this example found small trouble: So... In this example found small trouble:
can't get bot instance in handlers. can't get bot instance in handlers.
If you want to automatic change getting updates method use executor utils (from aiogram.utils.executor) If you want to automatic change getting updates method use executor utils (from aiogram.utils.executor)
TODO: Move token to environment variables. TODO: Move token to environment variables.
.. literalinclude:: ../../../examples/adwanced_executor_example.py .. literalinclude:: ../../../examples/advanced_executor_example.py
:caption: adwanced_executor_example.py :caption: advanced_executor_example.py
:language: python :language: python
:linenos: :linenos:
:lines: 25- :lines: 25-

View file

@ -6,7 +6,7 @@ Examples
echo_bot echo_bot
inline_bot inline_bot
adwanced_executor_example advanced_executor_example
proxy_and_emojize proxy_and_emojize
finite_state_machine_example finite_state_machine_example
throtling_example throtling_example

View file

@ -4,7 +4,7 @@
In this example used ArgumentParser for configuring Your bot. In this example used ArgumentParser for configuring Your bot.
Provided to start bot with webhook: Provided to start bot with webhook:
python adwanced_executor_example.py \ python advanced_executor_example.py \
--token TOKEN_HERE \ --token TOKEN_HERE \
--host 0.0.0.0 \ --host 0.0.0.0 \
--port 8084 \ --port 8084 \
@ -12,7 +12,7 @@ Provided to start bot with webhook:
--webhook-port 443 --webhook-port 443
Or long polling: Or long polling:
python adwanced_executor_example.py --token TOKEN_HERE python advanced_executor_example.py --token TOKEN_HERE
So... In this example found small trouble: So... In this example found small trouble:
can't get bot instance in handlers. can't get bot instance in handlers.