Download a CDN file.
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;
| Name | Type | Description |
|---|---|---|
| file_token | bytes | File token |
| offset | long | Offset of chunk to download |
| limit | int | Length of chunk to download |
| 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. |
How client apps download popular public files from secondary CDN data centers.