mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-10 17:53:17 +00:00
Annotate another eecution method in example echo bot.
This commit is contained in:
parent
534dea6de7
commit
986ffa0ebd
1 changed files with 4 additions and 0 deletions
|
|
@ -41,3 +41,7 @@ if __name__ == '__main__':
|
||||||
loop.run_until_complete(main())
|
loop.run_until_complete(main())
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
loop.stop()
|
loop.stop()
|
||||||
|
|
||||||
|
# Also you can use another execution method
|
||||||
|
# >>> from aiogram.utils.executor import start_pooling
|
||||||
|
# >>> start_pooling(dp, loop=loop, on_startup=main, on_shutdown=shutdown)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue