lib/tdlib/client_methods.rb
def cancel_download_file(file_id:, only_if_pending:)
    broadcast('@type'           => 'cancelDownloadFile',
              'file_id'         => file_id,
              'only_if_pending' => only_if_pending)
  end
# Stops the downloading of a file.
# If a file has already been downloaded, does nothing.
#
# @param file_id [Integer] Identifier of a file to stop downloading.
# @param 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.
# @return [TD::Types::Ok]
Stops the downloading of a file.
If a file has already been downloaded, does nothing.
Stops the downloading of a file . If a file has already been downloaded does nothing .
def cancel_download_file(file_id:, only_if_pending:)
    broadcast('@type'           => 'cancelDownloadFile',
              'file_id'         => file_id,
              'only_if_pending' => only_if_pending)
  end
def cancel_download_file ( file_id : , only_if_pending : ) broadcast ( '@type' => 'cancelDownloadFile' , 'file_id' => file_id , 'only_if_pending' => only_if_pending ) end
Stops the downloading of a file.
Stops the downloading of a file .
None
TD::Types::Ok
file_id
Identifier of a file to stop downloading.
Identifier of a file to stop downloading .
only_if_pending
Pass true to stop downloading only if it hasn't been started, i.e. request hasn't been sent to server.
Pass true to stop downloading only if it hasn ' t been started i . e . request hasn ' t been sent to server .