mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 03:30:09 +03:00
Always define pattern_match
This commit is contained in:
parent
e91c296d4b
commit
d4ab7ccbe1
|
@ -115,12 +115,16 @@ class CallbackQuery(EventBuilder):
|
||||||
The object returned by the ``data=`` parameter
|
The object returned by the ``data=`` parameter
|
||||||
when creating the event builder, if any. Similar
|
when creating the event builder, if any. Similar
|
||||||
to ``pattern_match`` for the new message event.
|
to ``pattern_match`` for the new message event.
|
||||||
|
|
||||||
|
pattern_match (`obj`, optional):
|
||||||
|
Alias for ``data_match``.
|
||||||
"""
|
"""
|
||||||
def __init__(self, query, peer, msg_id):
|
def __init__(self, query, peer, msg_id):
|
||||||
super().__init__(peer, msg_id=msg_id)
|
super().__init__(peer, msg_id=msg_id)
|
||||||
SenderGetter.__init__(self, query.user_id)
|
SenderGetter.__init__(self, query.user_id)
|
||||||
self.query = query
|
self.query = query
|
||||||
self.data_match = None
|
self.data_match = None
|
||||||
|
self.pattern_match = None
|
||||||
self._message = None
|
self._message = None
|
||||||
self._answered = False
|
self._answered = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user