Pass cdn_supported flag to upload.getFile.

This commit is contained in:
John Preston 2020-01-18 14:21:23 +03:00
parent 431521a8f5
commit 7751f383ca

View File

@ -553,7 +553,7 @@ mtpRequestId DownloadMtprotoTask::sendRequest(
}, [&](const StorageFileLocation &location) {
const auto reference = location.fileReference();
return api().request(MTPupload_GetFile(
MTP_flags(0),
MTP_flags(MTPupload_GetFile::Flag::f_cdn_supported),
location.tl(api().session().userId()),
MTP_int(offset),
MTP_int(limit)