mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24:51 +00:00
Use -100 prefix for channel ids
This commit is contained in:
parent
872f4f865a
commit
c5fb0d6079
1 changed files with 1 additions and 1 deletions
|
|
@ -720,7 +720,7 @@ def parse_deleted_messages(
|
||||||
for message in messages:
|
for message in messages:
|
||||||
m = pyrogram_types.Message(
|
m = pyrogram_types.Message(
|
||||||
message_id=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)
|
parsed_messages.append(m)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue