upload.getCdnFile

Download a CDN file.

 Method schema is available as of layer 143. Switch ยป

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