Interface PreliminaryUploadFile

Preliminarily uploads a file to the cloud before sending it in a message, which can be useful for uploading voice and video notes that are being recorded. In all other cases, there is no need to upload a file in advance. Updates updateFile will be used to notify about upload progress. The upload will not be completed until the file is sent in a message. Request type for Tdjson#preliminaryUploadFile.

interface PreliminaryUploadFile {
    @type: "preliminaryUploadFile";
    file: InputFile;
    file_type: FileType;
    priority: number;
}

Properties

@type: "preliminaryUploadFile"
file: InputFile

File to upload.

file_type: FileType

File type; pass null if unknown.

priority: number

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 first.