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

@@ -9,7 +9,7 @@ class ChatAction(EventBuilder):
Occurs whenever a user joins or leaves a chat, or a message is pinned.
"""
@classmethod
def build(cls, update):
def build(cls, update, others=None):
if isinstance(update, types.UpdateChannelPinnedMessage) and update.id == 0:
# Telegram does not always send
# UpdateChannelPinnedMessage for new pins