mirror of https://github.com/procxx/kepka.git
Pass cdn_supported flag to upload.getFile.
This commit is contained in:
parent
5d492bfe93
commit
1bcde1b55c
|
@ -558,7 +558,7 @@ mtpRequestId DownloadMtprotoTask::sendRequest(
|
||||||
}, [&](const StorageFileLocation &location) {
|
}, [&](const StorageFileLocation &location) {
|
||||||
const auto reference = location.fileReference();
|
const auto reference = location.fileReference();
|
||||||
return api().request(MTPupload_GetFile(
|
return api().request(MTPupload_GetFile(
|
||||||
MTP_flags(0),
|
MTP_flags(MTPupload_GetFile::Flag::f_cdn_supported),
|
||||||
location.tl(api().session().userId()),
|
location.tl(api().session().userId()),
|
||||||
MTP_int(offset),
|
MTP_int(offset),
|
||||||
MTP_int(limit)
|
MTP_int(limit)
|
||||||
|
|
Loading…
Reference in New Issue