Pass all Updates when building events

This commit is contained in:
Lonami Exo
2019-06-30 16:32:18 +02:00
parent 71979e7b23
commit a7a7c4add2
12 changed files with 20 additions and 20 deletions

View File

@@ -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):