Remove commands= from examples

This commit is contained in:
Alex Root Junior 2023-09-06 00:50:46 +03:00
parent b56628bb2e
commit b94123de3d
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
2 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ from aiogram.types import (
my_router = Router()
@my_router.message(Command(commands=["start"]))
@my_router.message(Command("start"))
async def command_start(message: Message, bot: Bot, base_url: str):
await bot.set_chat_menu_button(
chat_id=message.chat.id,
@ -20,7 +20,7 @@ async def command_start(message: Message, bot: Bot, base_url: str):
await message.answer("""Hi!\nSend me any type of message to start.\nOr just send /webview""")
@my_router.message(Command(commands=["webview"]))
@my_router.message(Command("webview"))
async def command_webview(message: Message, base_url: str):
await message.answer(
"Good. Now you can try to send it via Webview",