mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added possibility to combine filters or invert result (#895)
* Added possibility to combine filters or invert result
This commit is contained in:
parent
7bfc941a1e
commit
4fb77a3a2a
10 changed files with 184 additions and 40 deletions
7
CHANGES/894.feature.rst
Normal file
7
CHANGES/894.feature.rst
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Added possibility to combine filters or invert result
|
||||
|
||||
Example:
|
||||
.. code-block:: python
|
||||
Text(text="demo") | Command(commands=["demo"])
|
||||
MyFilter() & AnotherFilter()
|
||||
~StateFilter(state='my-state')
|
||||
Loading…
Add table
Add a link
Reference in a new issue