Disabled ContentTypesFilter by default (#668)

* Disabled ContentTypesFilter by default

* Rename file

* Update docs
This commit is contained in:
Alex Root Junior 2021-08-20 02:39:03 +03:00 committed by GitHub
parent 5851e32266
commit 18a93aab60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 18 deletions

View file

@ -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()