View Source ExTDLib.Method.PreliminaryUploadFile (ExTDLib v0.0.4)

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 is sent in a message. Returns object_ptr<File>.

NameTypeDescription
fileInputFileFile to upload.
file_typeFileTypeFile type; pass null if unknown.
prioritynumberPriority 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.

More details on telegram's documentation.