Fix commands in examples

This commit is contained in:
Gabben 2022-03-16 07:19:25 +00:00 committed by GitHub
parent 39ca3e8fcf
commit ad4ccac8f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -18,7 +18,7 @@ class Form(StatesGroup):
language = State()
@form_router.message(commands={"start"})
@form_router.message(commands=["start"])
async def command_start(message: Message, state: FSMContext) -> None:
await state.set_state(Form.name)
await message.answer(
@ -27,7 +27,7 @@ async def command_start(message: Message, state: FSMContext) -> None:
)
@form_router.message(commands={"cancel"})
@form_router.message(commands=["cancel"])
@form_router.message(F.text.casefold() == "cancel")
async def cancel_handler(message: Message, state: FSMContext) -> None:
"""