telegram api method · layer 229 · #de7b673d

upload.saveBigFilePart

usable by users and bots

Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods.

definition

upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool;

parameters

nametypedescription
file_idlongRandom file id, created by the client
file_partintPart sequence number
file_total_partsintTotal number of parts
bytesbytesBinary data, part contents

returns

Bool

errors (9)

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.
400FILE_PART_EMPTYThe provided file part is empty.
400FILE_PART_INVALIDThe file part number is invalid.
400FILE_PART_SIZE_CHANGEDProvided file part size has changed.
400FILE_PART_SIZE_INVALIDThe provided file part size is invalid.
400FILE_PART_TOO_BIGThe uploaded file part is too big.
400FILE_PART_TOO_SMALLThe size of the uploaded file part is too small, please see the documentation for the allowed sizes.
400FILE_PARTS_INVALIDThe number of file parts is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 9–229

idlayers
#de7b673d9–229