cancel_download_file


Description:

public async Ok cancel_download_file (int32 file_id, bool only_if_pending) throws TDLibError

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

Parameters:

file_id

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