upload.saveBigFilePart #

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

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
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

Result #

Bool

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400FILE_PARTS_INVALIDThe number of file parts is invalid.
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.