mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Update Photo file_id format
This commit is contained in:
parent
64939e5289
commit
ec00c332c2
@ -77,10 +77,10 @@ class Photo(Object):
|
||||
return Photo(
|
||||
file_id=encode(
|
||||
pack(
|
||||
"<iiqqc",
|
||||
2, photo.dc_id,
|
||||
photo.id, photo.access_hash,
|
||||
big.type.encode()
|
||||
"<iiqqqiiii",
|
||||
2, photo.dc_id, photo.id, photo.access_hash,
|
||||
big.location.volume_id, 1, 2, ord(big.type),
|
||||
big.location.local_id
|
||||
)
|
||||
),
|
||||
width=big.w,
|
||||
|
Loading…
Reference in New Issue
Block a user