upload.getCdnFile

Download a CDN file.

upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile;
upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile;
---functions---
upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile;

Parameters

Name Type Description
file_token bytes File token
offset long Offset of chunk to download
limit int Length of chunk to download

Result

upload.CdnFile

Possible errors

Code Type Description
400 FILE_TOKEN_INVALID The master DC did not accept the file_token (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile.

Related pages

Encrypted CDNs for Speed and Security