upload.getCdnFile #

Download a CDN file.

Layer 223

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

Parameters #

NameTypeDescription
file_tokenbytesFile token
offsetlongOffset of chunk to download
limitintLength of chunk to download

Result #

upload.CdnFile

Only users can use this method #

Possible errors #

CodeTypeDescription
400FILE_TOKEN_INVALIDThe 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.
404METHOD_INVALIDThe specified method is invalid.

Encrypted CDNs for Speed and Security #

How client apps download popular public files from secondary CDN data centers.