bots.checkDownloadFileParams
Check if a mini app can request the download of a specific file: called when handling web\_app\_request\_file\_download events »
Check if a [mini app](https://core.telegram.org/api/bots/webapps.md) can request the download of a specific file: called when handling [web\_app\_request\_file\_download events »](https://core.telegram.org/api/web-events.md#web-app-request-file-download)
| Name | Type | Required | Description |
|---|---|---|---|
bot | InputUser | Yes | The bot that owns the [mini app](https://core.telegram.org/api/bots/webapps.md) that requested the download |
file_name | string | Yes | The `filename` from the [web_app_request_file_download event »](https://core.telegram.org/api/web-events.md#web-app-request-file-download) |
url | string | Yes | The `url` from the [web_app_request_file_download event »](https://core.telegram.org/api/web-events.md#web-app-request-file-download) |
Responses
Bool
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.