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
Name | Type | Description |
---|---|---|
file_id | number | Identifier of the file to download. |
priority | number | Priority 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.