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.

NameTypeDescription
file_idnumberIdentifier of a file to stop downloading.
only_if_pendingboolPass 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.