Request small song thumbnails.

This commit is contained in:
John Preston 2022-08-03 11:43:30 +03:00
parent f4b80d8714
commit c5702f0887
2 changed files with 2 additions and 2 deletions

View File

@ -850,7 +850,7 @@ inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector
inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation;
inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation;
inputWebFileAudioAlbumThumbLocation#f46fe924 flags:# document:flags.0?InputDocument title:flags.1?string performer:flags.1?string = InputWebFileLocation;
inputWebFileAudioAlbumThumbLocation#f46fe924 flags:# small:flags.2?true document:flags.0?InputDocument title:flags.1?string performer:flags.1?string = InputWebFileLocation;
upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile;

View File

@ -564,7 +564,7 @@ mtpRequestId DownloadMtprotoTask::sendRequest(
const auto owner = &api().session().data();
return api().request(MTPupload_GetWebFile(
MTP_inputWebFileAudioAlbumThumbLocation(
MTP_flags(Flag::f_document),
MTP_flags(Flag::f_document | Flag::f_small),
owner->document(location.documentId)->mtpInput(),
MTPstring(),
MTPstring()),