mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Deprecate filters factory (#976)
* Deprecate filters factory * Added changelog * Update filters usage in docs and examples
This commit is contained in:
parent
c1341ba2df
commit
0e0dbe7e59
11 changed files with 67 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue