mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Bump examples, docs and executor (nothing)
This commit is contained in:
parent
21908739e9
commit
9f13e11e6b
9 changed files with 57 additions and 21 deletions
|
|
@ -1,10 +1,11 @@
|
|||
.. Autogenerated file at 2018-09-08 02:07:37.572483
|
||||
.. Autogenerated file at 2018-10-28 19:31:48.335963
|
||||
|
||||
=========================
|
||||
Adwanced executor example
|
||||
=========================
|
||||
|
||||
!/usr/bin/env python3
|
||||
**This example is outdated**
|
||||
In this example used ArgumentParser for configuring Your bot.
|
||||
Provided to start bot with webhook:
|
||||
python adwanced_executor_example.py \
|
||||
|
|
@ -18,10 +19,10 @@ python adwanced_executor_example.py --token TOKEN_HERE
|
|||
So... In this example found small trouble:
|
||||
can't get bot instance in handlers.
|
||||
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
|
||||
:caption: adwanced_executor_example.py
|
||||
:language: python
|
||||
:linenos:
|
||||
:lines: 24-
|
||||
:lines: 25-
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
.. Autogenerated file at 2018-09-08 02:07:37.587860
|
||||
.. Autogenerated file at 2018-10-28 19:31:48.341172
|
||||
|
||||
===============
|
||||
Webhook example
|
||||
===============
|
||||
|
||||
Example outdated
|
||||
|
||||
.. literalinclude:: ../../../examples/webhook_example.py
|
||||
:caption: webhook_example.py
|
||||
:language: python
|
||||
:linenos:
|
||||
:lines: 5-
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue