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

Only users can use this method

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.
404 METHOD_INVALID The specified method is invalid.

Related pages

Encrypted CDNs for Speed and Security