2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Change chat photo media id

This commit is contained in:
Dan 2018-05-05 16:51:01 +02:00
parent 7a79e5a0c4
commit ef45288419

View File

@ -80,13 +80,13 @@ def parse_chat_photo(photo):
return pyrogram_types.ChatPhoto(
small_file_id=encode(
pack(
"<iiqqqqi", 0, loc_small.dc_id, 0, 0, loc_small.volume_id,
"<iiqqqqi", 1, loc_small.dc_id, 0, 0, loc_small.volume_id,
loc_small.secret, loc_small.local_id
)
),
big_file_id=encode(
pack(
"<iiqqqqi", 0, loc_big.dc_id, 0, 0, loc_big.volume_id,
"<iiqqqqi", 1, loc_big.dc_id, 0, 0, loc_big.volume_id,
loc_big.secret, loc_big.local_id
)
)