Use telegram_api::inputPhotoLegacyFileLocation instead of inputFileLocation.

GitOrigin-RevId: da7e4fb8935b08b654663c650f31013f8a8b3f12
This commit is contained in:
levlam 2019-10-24 17:00:01 +03:00
parent 0b4b81282d
commit aa752468fc
3 changed files with 4 additions and 2 deletions

View File

@ -76,6 +76,7 @@ inputDocumentFileLocation#bad07584 id:long access_hash:long file_reference:bytes
inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;
inputTakeoutFileLocation#29be5899 = InputFileLocation;
inputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;
inputPhotoLegacyFileLocation#d83466f3 id:long access_hash:long file_reference:bytes volume_id:long local_id:int secret:long = InputFileLocation;
inputPeerPhotoFileLocation#27d69997 flags:# big:flags.0?true peer:InputPeer volume_id:long local_id:int = InputFileLocation;
inputStickerSetThumb#dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation;

Binary file not shown.

View File

@ -396,8 +396,9 @@ class FullRemoteFileLocation {
case LocationType::Photo:
switch (photo().source_.get_type()) {
case PhotoSizeSource::Type::Legacy:
return make_tl_object<telegram_api::inputFileLocation>(
photo().volume_id_, photo().local_id_, photo().source_.legacy().secret, BufferSlice(file_reference_));
return make_tl_object<telegram_api::inputPhotoLegacyFileLocation>(
photo().id_, photo().access_hash_, BufferSlice(file_reference_), photo().volume_id_, photo().local_id_,
photo().source_.legacy().secret);
case PhotoSizeSource::Type::Thumbnail: {
auto &thumbnail = photo().source_.thumbnail();
switch (thumbnail.file_type) {