Layer 220
UploadGetCdnFile
Download a CDN file.
method
Users
upload.getCdnFile#395f69da file_token:bytes offset:long limit:int = upload.CdnFile;
Parameters
| Name | Type | Description |
|---|---|---|
| FileToken | bytes | File token |
| Offset | long | Offset of chunk to download |
| Limit | int | Length of chunk to download |
Returns
upload.CdnFilePossible 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. get File. |
| 404 | METHOD_INVALID | The specified method is invalid. |
Gogram Example
// UploadGetCdnFile - positional arguments result, err := client.UploadGetCdnFile([]byte{}, int64(0), 0) if err != nil { // handle error } // result is *tg.UploadCdnFile