Use -100 prefix for channel ids

This commit is contained in:
Dan 2018-06-20 12:15:55 +02:00 committed by GitHub
parent 872f4f865a
commit c5fb0d6079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -720,7 +720,7 @@ def parse_deleted_messages(
for message in messages:
m = pyrogram_types.Message(
message_id=message,
chat=(pyrogram_types.Chat(id=channel_id, type="channel") if channel_id is not None else None)
chat=(pyrogram_types.Chat(id=int("-100" + str(channel_id)), type="channel") if channel_id is not None else None)
)
parsed_messages.append(m)