Layer 220
UploadSaveBigFilePart
Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods.
method
Users
Bots
upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| FileId | long | Random file id, created by the client |
| FilePart | int | Part sequence number |
| FileTotalParts | int | Total number of parts |
| Bytes | bytes | Binary data, part contents |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | FILE_PARTS_INVALID | The number of file parts is invalid. |
| 400 | FILE_PART_EMPTY | The provided file part is empty. |
| 400 | FILE_PART_INVALID | The file part number is invalid. |
| 400 | FILE_PART_SIZE_CHANGED | Provided file part size has changed. |
| 400 | FILE_PART_SIZE_INVALID | The provided file part size is invalid. |
| 400 | FILE_PART_TOO_BIG | The uploaded file part is too big. |
| 400 | FILE_PART_TOO_SMALL | The size of the uploaded file part is too small, please see the documentation for the allowed sizes. |
Gogram Example
// UploadSaveBigFilePart - positional arguments result, err := client.UploadSaveBigFilePart(int64(0), 0, 0, []byte{}) if err != nil { // handle error } // result is *tg.Bool