Support custom-callback filter for all events

This commit is contained in:
Lonami Exo
2018-09-09 15:48:54 +02:00
parent 11ef4ce370
commit 2f09e5c335
7 changed files with 36 additions and 17 deletions

View File

@@ -14,8 +14,9 @@ class MessageRead(EventBuilder):
messages the event will be fired. By default (``False``) only
when messages you sent are read by someone else will fire it.
"""
def __init__(self, chats=None, *, blacklist_chats=None, inbox=False):
super().__init__(chats, blacklist_chats)
def __init__(
self, chats=None, *, blacklist_chats=None, func=None, inbox=False):
super().__init__(chats, blacklist_chats=blacklist_chats, func=func)
self.inbox = inbox
@classmethod