telegram api method · layer 229 · #9b2754a8

upload.reuploadCdnFile

usable by users and bots

Request a reupload of a certain file to a CDN DC.

definition

upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector<FileHash>;

parameters

nametypedescription
file_tokenbytesFile token
request_tokenbytesRequest token

returns

Vector<FileHash>

errors (8)

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.
400LOCATION_INVALIDThe provided location is invalid.
400REQUEST_TOKEN_INVALIDThe master DC did not accept the request_token from the CDN DC. 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).
500CDN_UPLOAD_TIMEOUTA server-side timeout occurred while reuploading the file to the CDN DC.

history

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

idlayers
#2e7a202066–68
#1af91c0970–75
#9b2754a876–229