Interface CancelDownloadFile

Stops the downloading of a file. If a file has already been downloaded, does nothing. Request type for Tdjson#cancelDownloadFile.

interface CancelDownloadFile {
    @type: "cancelDownloadFile";
    file_id: number;
    only_if_pending?: boolean;
}

Properties

@type: "cancelDownloadFile"
file_id: number

Identifier of a file to stop downloading.

only_if_pending?: boolean

Pass true to stop downloading only if it hasn't been started, i.e. request hasn't been sent to server.