Annotate another eecution method in example echo bot.

This commit is contained in:
Alex Root Junior 2017-09-16 20:00:00 +03:00
parent 534dea6de7
commit 986ffa0ebd

View file

@ -41,3 +41,7 @@ if __name__ == '__main__':
loop.run_until_complete(main())
except KeyboardInterrupt:
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)