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,