Use telegram_api::inputPhotoLegacyFileLocation instead of inputFileLocation.
GitOrigin-RevId: da7e4fb8935b08b654663c650f31013f8a8b3f12
This commit is contained in:
parent
0b4b81282d
commit
aa752468fc
@ -76,6 +76,7 @@ inputDocumentFileLocation#bad07584 id:long access_hash:long file_reference:bytes
|
|||||||
inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;
|
inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;
|
||||||
inputTakeoutFileLocation#29be5899 = InputFileLocation;
|
inputTakeoutFileLocation#29be5899 = InputFileLocation;
|
||||||
inputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = 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;
|
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;
|
inputStickerSetThumb#dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation;
|
||||||
|
|
||||||
|
Binary file not shown.
@ -396,8 +396,9 @@ class FullRemoteFileLocation {
|
|||||||
case LocationType::Photo:
|
case LocationType::Photo:
|
||||||
switch (photo().source_.get_type()) {
|
switch (photo().source_.get_type()) {
|
||||||
case PhotoSizeSource::Type::Legacy:
|
case PhotoSizeSource::Type::Legacy:
|
||||||
return make_tl_object<telegram_api::inputFileLocation>(
|
return make_tl_object<telegram_api::inputPhotoLegacyFileLocation>(
|
||||||
photo().volume_id_, photo().local_id_, photo().source_.legacy().secret, BufferSlice(file_reference_));
|
photo().id_, photo().access_hash_, BufferSlice(file_reference_), photo().volume_id_, photo().local_id_,
|
||||||
|
photo().source_.legacy().secret);
|
||||||
case PhotoSizeSource::Type::Thumbnail: {
|
case PhotoSizeSource::Type::Thumbnail: {
|
||||||
auto &thumbnail = photo().source_.thumbnail();
|
auto &thumbnail = photo().source_.thumbnail();
|
||||||
switch (thumbnail.file_type) {
|
switch (thumbnail.file_type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user