upload.getCdnFileHashes #

Get SHA256 hashes for verifying downloaded CDN files

Layer 223

---functions---
upload.getCdnFileHashes#91dc3f31 file_token:bytes offset:long = Vector<FileHash>;

Parameters #

NameTypeDescription
file_tokenbytesFile
offsetlongOffset from which to start getting hashes

Result #

Vector<FileHash>

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400CDN_METHOD_INVALIDYou can't call this method in a CDN DC.
400FILE_TOKEN_INVALIDThe 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.
400RSA_DECRYPT_FAILEDInternal RSA decryption failed.

Encrypted CDNs for Speed and Security #

How client apps download popular public files from secondary CDN data centers.