Layer 220
UploadReuploadCdnFile
Request a reupload of a certain file to a CDN DC.
method
Users
Bots
upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector<FileHash>;
Parameters
| Name | Type | Description |
|---|---|---|
| FileToken | bytes | File token |
| RequestToken | bytes | Request token |
Returns
VectorPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CDN_METHOD_INVALID | You can't call this method in a CDN DC. |
| 500 | CDN_UPLOAD_TIMEOUT | A server-side timeout occurred while reuploading the file to the CDN DC. |
| 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. |
| 400 | LOCATION_INVALID | The provided location is invalid. |
| 400 | REQUEST_TOKEN_INVALID | The master DC did not accept the request_token from the CDN DC. Continue downloading the file from the master DC using upload. get File. |
| 400 | RSA_DECRYPT_FAILED | Internal RSA decryption failed. |
Gogram Example
// UploadReuploadCdnFile - positional arguments result, err := client.UploadReuploadCdnFile([]byte{}, []byte{}) if err != nil { // handle error } // result is *tg.Vector