telegram api method · layer 229 · #91dc3f31

upload.getCdnFileHashes

usable by users and bots

Get SHA256 hashes for verifying downloaded CDN files

definition

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

parameters

nametypedescription
file_tokenbytesFile
offsetlongOffset from which to start getting hashes

returns

Vector<FileHash>

errors (5)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
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.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 70–229 · constructor id changed 2×

idlayers
#f715c87b70–75
#4da5423176–142
#91dc3f31143–229