Skip to content

cancelDownloadFile

Sahri Riza Umami edited this page Jun 22, 2018 · 4 revisions

Stops the downloading of a file.
If a file has already been downloaded, does nothing.

cancelDownloadFile(file_id, only_if_pending, callback, data)
Field Type Description
file_id int32 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.

Example

  • Stops downloading file (id) 234.

    cancelDownloadFile(234)

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally