mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Fix docs and examples (#864)
* Update magic_data Allowed handlers * Fix ChatMemberUpdated example * Fix examples with `.in_(...)` and delete with `@` * Fix commands in examples * Change List to Set
This commit is contained in:
parent
b50500e28d
commit
a37bbba38c
7 changed files with 22 additions and 14 deletions
|
|
@ -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:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue