View Source ExTDLib.Method.CancelDownloadFile (ExTDLib v0.0.4)
Stops the downloading of a file. If a file has already been downloaded, does nothing. Returns object_ptr<Ok>.
| 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.