Update filters usage in docs and examples

This commit is contained in:
Alex Root Junior 2022-08-14 18:15:53 +03:00
parent 443a2ef455
commit ec8e580b9a
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
7 changed files with 19 additions and 10 deletions

View file

@ -1,6 +1,7 @@
import logging
from aiogram import Bot, Dispatcher, types
from aiogram.filters import Command
from aiogram.types import Message
TOKEN = "42:TOKEN"
@ -9,7 +10,7 @@ dp = Dispatcher()
logger = logging.getLogger(__name__)
@dp.message(commands=["start"])
@dp.message(Command(commands=["start"]))
async def command_start_handler(message: Message) -> None:
"""
This handler receive messages with `/start` command