Skip to content

Commit ec00c33

Browse files
committed
Update Photo file_id format
1 parent 64939e5 commit ec00c33

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • pyrogram/client/types/messages_and_media

pyrogram/client/types/messages_and_media/photo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ def _parse(client, photo: types.Photo) -> "Photo":
7777
return Photo(
7878
file_id=encode(
7979
pack(
80-
"<iiqqc",
81-
2, photo.dc_id,
82-
photo.id, photo.access_hash,
83-
big.type.encode()
80+
"<iiqqqiiii",
81+
2, photo.dc_id, photo.id, photo.access_hash,
82+
big.location.volume_id, 1, 2, ord(big.type),
83+
big.location.local_id
8484
)
8585
),
8686
width=big.w,

0 commit comments

Comments
 (0)