From c5fb0d60790125997602e3fe8a3d9ef59c0b9d9e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 20 Jun 2018 12:15:55 +0200 Subject: [PATCH] Use -100 prefix for channel ids --- pyrogram/client/ext/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index 26017c90..6dda20b7 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -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)