TDLib v0.0.2 TDLib.Method.DownloadFile View Source

Asynchronously downloads a file from the cloud. updateFile will be used to notify about the download progress and successful completion of the download. Returns file state just after the download has been started. Returns object_ptr.

NameTypeDescription
file_idnumberIdentifier of the file to download.
prioritynumberPriority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile was called will be downloaded first.

More details on telegram’s documentation.