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
|
|
@ -102,7 +102,7 @@ async def handle_set_name(message: types.Message, command: CommandObject) -> Non
|
|||
|
||||
|
||||
async def main() -> None:
|
||||
# Initialize Bot instance with a default parse mode which will be passed to all API calls
|
||||
# Initialize Bot instance with default bot properties which will be passed to all API calls
|
||||
bot = Bot(token=TOKEN, default=DefaultBotProperties(parse_mode=ParseMode.HTML))
|
||||
# And the run events dispatching
|
||||
await dp.start_polling(bot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue