Layer 220
BotsCheckDownloadFileParams
Check if a mini app can request the download of a specific file: called when handling web_app_request_file_download events
method
Users
bots.checkDownloadFileParams#50077589 bot:InputUser file_name:string url:string = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | The bot that owns the mini app that requested the download |
| FileName | string | The filename from the web_app_request_file_download event |
| Url | string | The url from the web_app_request_file_download event |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
Gogram Example
// BotsCheckDownloadFileParams - positional arguments result, err := client.BotsCheckDownloadFileParams(&tg.InputUserSelf{}, "...", "...") if err != nil { // handle error } // result is *tg.Bool