mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Use fully qualified channel id
This commit is contained in:
parent
e6ee76792b
commit
b5304ca23a
@ -649,7 +649,7 @@ class Client:
|
|||||||
if not isinstance(message, types.MessageEmpty):
|
if not isinstance(message, types.MessageEmpty):
|
||||||
diff = self.send(
|
diff = self.send(
|
||||||
functions.updates.GetChannelDifference(
|
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(
|
filter=types.ChannelMessagesFilter(
|
||||||
ranges=[types.MessageRange(
|
ranges=[types.MessageRange(
|
||||||
min_id=update.message.id,
|
min_id=update.message.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user