mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
misc: consistency of comments and dispatcher instance creation
This commit is contained in:
parent
1cb0f38d2e
commit
fd95745fef
9 changed files with 31 additions and 16 deletions
|
|
@ -197,9 +197,13 @@ def create_dispatcher() -> Dispatcher:
|
|||
return dispatcher
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Recommended to use CLI instead of this snippet.
|
||||
# `aiogram run polling scene_example:create_dispatcher --token BOT_TOKEN --log-level info`
|
||||
def main() -> None:
|
||||
dp = create_dispatcher()
|
||||
bot = Bot(token=TOKEN)
|
||||
dp.run_polling(bot)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Recommended to use CLI instead of this snippet.
|
||||
# `aiogram run polling scene_example:create_dispatcher --token BOT_TOKEN --log-level info`
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue