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:
Gabben 2022-03-26 15:30:46 +00:00 committed by GitHub
parent b50500e28d
commit a37bbba38c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 14 deletions

View file

@ -10,7 +10,7 @@ dp = Dispatcher()
logger = logging.getLogger(__name__)
@dp.message(commands={"start"})
@dp.message(commands=["start"])
async def command_start_handler(message: Message) -> None:
"""
This handler receive messages with `/start` command
@ -23,7 +23,7 @@ async def command_start_handler(message: Message) -> None:
@dp.message()
async def echo_handler(message: types.Message) -> Any:
async def echo_handler(message: types.Message) -> None:
"""
Handler will forward received message back to the sender