mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Disabled ContentTypesFilter by default (#668)
* Disabled ContentTypesFilter by default * Rename file * Update docs
This commit is contained in:
parent
5851e32266
commit
18a93aab60
6 changed files with 21 additions and 18 deletions
|
|
@ -35,6 +35,19 @@ Update
|
|||
Message
|
||||
-------
|
||||
|
||||
|
||||
.. attention::
|
||||
|
||||
Be attentive with filtering this event
|
||||
|
||||
You should expect than this event can be with different set's of attributes in different cases
|
||||
|
||||
(For example text, sticker and document is always is different content types of message)
|
||||
|
||||
Recommended way to check field availability before usage or use
|
||||
:class:`aiogram.dispatcher.filters.content_types.ContentTypesFilter`
|
||||
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@router.message()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue