Function tdlib::functions::preliminary_upload_file
source · pub async fn preliminary_upload_file(
file: InputFile,
file_type: Option<FileType>,
priority: i32,
client_id: i32
) -> Result<File, Error>
Expand description
Preliminary uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes. Updates updateFile will be used to notify about upload progress and successful completion of the upload. The file will not have a persistent remote identifier until it will be sent in a message
Arguments
file
- File to uploadfile_type
- File type; pass null if unknownpriority
- Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two files are equal, then the first one for which preliminaryUploadFile was called will be uploaded firstclient_id
- The client id to send the request to