bots.checkDownloadFileParams

Check if a mini app can request the download of a specific file: called when handling web_app_request_file_download events »

 Method schema is available as of layer 193. Switch »

Parameters

Name Type Description
bot InputUser The bot that owns the mini app that requested the download
file_name string The filename from the web_app_request_file_download event »
url string The url from the web_app_request_file_download event »

Result

Bool

Possible errors

Code Type Description
400 BOT_INVALID This is not a valid bot.

Related pages

Mini Apps on Telegram

Bots can offer users interactive HTML5 web apps to completely replace any website.

Web events

How telegram apps interact with webpages