mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Make filters combinable
This commit is contained in:
@@ -345,6 +345,7 @@ There is no longer nested ``class Event`` inside them either.
|
||||
|
||||
Instead, the event type itself is what the handler will actually be called with.
|
||||
Because filters are separate, there is no longer a need for v1 ``@events.register`` either.
|
||||
It also means you can combine filters with ``&``, ``|`` and ``~``.
|
||||
|
||||
Filters are now normal functions that work with any event.
|
||||
Of course, this doesn't mean all filters make sense for all events.
|
||||
|
Reference in New Issue
Block a user