From 00420aec9275492949fc7f8728c9c5b69e6db459 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 6 May 2018 15:06:32 +0200 Subject: [PATCH] Use the already computed 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 0bbe41a0..b624c9d5 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -812,7 +812,7 @@ class Client: if not isinstance(message, types.MessageEmpty): diff = self.send( functions.updates.GetChannelDifference( - channel=self.resolve_peer(int("-100" + str(update.message.to_id.channel_id))), + channel=self.resolve_peer(int("-100" + str(channel_id))), filter=types.ChannelMessagesFilter( ranges=[types.MessageRange( min_id=update.message.id,