Fix issues with to/from ID in private chats with multiple clients

This should address #1218.
This commit is contained in:
Lonami Exo
2019-08-07 00:46:19 +02:00
parent b1eed82b7f
commit 45d82f2a85
11 changed files with 26 additions and 19 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, others=None):
def build(cls, update, others=None, self_id=None):
if isinstance(update, types.UpdateChannelPinnedMessage) and update.id == 0:
# Telegram does not always send
# UpdateChannelPinnedMessage for new pins