--- title: cancelDownloadFile description: Stops file downloading. If file is already downloaded, does nothing image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # 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 | Description | Required | |----------|---------------|-------------|----------| |file\_id|[int](../types/int.md) | Identifier of file to cancel download | Yes| ### Return type: [Ok](../types/Ok.md)