upload.getCdnFileHashes

Get SHA256 hashes for verifying downloaded CDN files

---functions---
upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector<FileHash>;

Parameters

Name Type Description
file_token bytes File
offset int 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 RSA_DECRYPT_FAILED Internal RSA decryption failed.

Bots can use this method

Related pages

Encrypted CDNs for Speed and Security