Layer 220
UploadSaveFilePart
Saves a part of file for further sending to one of the methods.
method
Users
Bots
upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| FileId | long | Random file identifier created by the client |
| FilePart | int | Numerical order of a part |
| Bytes | bytes | Binary data, content of a part |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | FILE_PART_EMPTY | The provided file part is empty. |
| 400 | FILE_PART_INVALID | The file part number is invalid. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
Gogram Example
// UploadSaveFilePart - positional arguments result, err := client.UploadSaveFilePart(int64(0), 0, []byte{}) if err != nil { // handle error } // result is *tg.Bool