--- title: cancelDownloadFile description: Stops file downloading. If file is already downloaded, does nothing --- ## Method: cancelDownloadFile [Back to methods index](index.md) YOU CANNOT USE THIS METHOD IN MADELINEPROTO Stops file downloading. If file is already downloaded, does nothing ### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |file\_id|[CLICK ME int](../types/int.md) | Yes|Identifier of file to cancel download| ### Return type: [Ok](../types/Ok.md)