From b5304ca23ac197e7e07400245a3d1074eaa9d07e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 2 Apr 2018 11:11:38 +0200 Subject: [PATCH] Use fully qualified channel id --- pyrogram/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 23a1568b..005fda4f 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -649,7 +649,7 @@ class Client: if not isinstance(message, types.MessageEmpty): diff = self.send( functions.updates.GetChannelDifference( - channel=self.resolve_peer(update.message.to_id.channel_id), + channel=self.resolve_peer(int("-100" + str(update.message.to_id.channel_id))), filter=types.ChannelMessagesFilter( ranges=[types.MessageRange( min_id=update.message.id,