mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 05:54:51 +00:00
Update Photo file_id format
This commit is contained in:
parent
64939e5289
commit
ec00c332c2
1 changed files with 4 additions and 4 deletions
|
|
@ -77,10 +77,10 @@ class Photo(Object):
|
||||||
return Photo(
|
return Photo(
|
||||||
file_id=encode(
|
file_id=encode(
|
||||||
pack(
|
pack(
|
||||||
"<iiqqc",
|
"<iiqqqiiii",
|
||||||
2, photo.dc_id,
|
2, photo.dc_id, photo.id, photo.access_hash,
|
||||||
photo.id, photo.access_hash,
|
big.location.volume_id, 1, 2, ord(big.type),
|
||||||
big.type.encode()
|
big.location.local_id
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
width=big.w,
|
width=big.w,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue