TDLib v0.0.2 TDLib.Method.CancelDownloadFile View Source
Stops the downloading of a file. If a file has already been downloaded, does nothing.
Returns object_ptr
Name | Type | Description |
---|---|---|
file_id | number | Identifier of a file to stop downloading. |
only_if_pending | bool | Pass true to stop downloading only if it hasn’t been started, i.e. request hasn’t been sent to server. |
More details on telegram’s documentation.