mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Fix peer ids decoding from file ids
This commit is contained in:
parent
3c8f41b1d2
commit
521e403f92
1 changed files with 2 additions and 2 deletions
|
|
@ -866,11 +866,11 @@ class Client(Methods, Scaffold):
|
||||||
else:
|
else:
|
||||||
if file_id.chat_access_hash == 0:
|
if file_id.chat_access_hash == 0:
|
||||||
peer = raw.types.InputPeerChat(
|
peer = raw.types.InputPeerChat(
|
||||||
chat_id=file_id.chat_id
|
chat_id=-file_id.chat_id
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
peer = raw.types.InputPeerChannel(
|
peer = raw.types.InputPeerChannel(
|
||||||
channel_id=file_id.chat_id,
|
channel_id=utils.get_channel_id(file_id.chat_id),
|
||||||
access_hash=file_id.chat_access_hash
|
access_hash=file_id.chat_access_hash
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue