mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Support custom-callback filter for all events
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user