mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Pass all Updates when building events
This commit is contained in:
@@ -45,7 +45,7 @@ class CallbackQuery(EventBuilder):
|
||||
raise TypeError('Invalid data type given')
|
||||
|
||||
@classmethod
|
||||
def build(cls, update):
|
||||
def build(cls, update, others=None):
|
||||
if isinstance(update, types.UpdateBotCallbackQuery):
|
||||
return cls.Event(update, update.peer, update.msg_id)
|
||||
elif isinstance(update, types.UpdateInlineBotCallbackQuery):
|
||||
|
Reference in New Issue
Block a user