mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix commands in examples
This commit is contained in:
parent
39ca3e8fcf
commit
ad4ccac8f7
4 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue