bots.checkDownloadFileParams #

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

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.checkDownloadFileParams#50077589 bot:InputUser file_name:string url:string = Bool;

Parameters #

NameTypeDescription
botInputUserThe bot that owns the mini app that requested the download
file_namestringThe filename from the web_app_request_file_download event »
urlstringThe url from the web_app_request_file_download event »

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.

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