Layer 224
UploadGetCdnFileHashes
Get SHA 256 hashes for verifying downloaded CDN files
method
Users
Bots
upload.getCdnFileHashes#91dc3f31 file_token:bytes offset:long = Vector<FileHash>;
Parameters
| Name | Type | Description |
|---|---|---|
| FileToken | bytes | File |
| Offset | long | Offset from which to start getting hashes |
Returns
VectorGogram Example
// UploadGetCdnFileHashes - positional arguments result, err := client.UploadGetCdnFileHashes([]byte{0x01, 0x02, 0x03}, int64(1234567890)) if err != nil { // handle error } // result is *tg.Vector
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CDN_METHOD_INVALID | You can't call this method in a 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 | RSA_DECRYPT_FAILED | Internal RSA decryption failed. |