Get SHA256 hashes for verifying downloaded CDN files
Method schema is available as of layer 76. Switch ยป
Parameters
Name |
Type |
Description |
file_token |
bytes |
File |
offset |
long |
Offset from which to start getting hashes |
Result
Vector<FileHash>
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.getFile. |
400 |
RSA_DECRYPT_FAILED |
Internal RSA decryption failed. |
Bots can use this method
Related pages