bots.getRequestedWebViewButton #

Fetch the peer request button a bot prepared for a Mini App with bots.requestWebViewButton, invoked when the Mini App emits a web_app_request_chat event, see here » for more info.

Layer 223

Method schema is available as of layer 224. Switch »

Parameters #

NameTypeDescription
botInputUserThe bot that owns the Mini App
webapp_req_idstringThe Mini App request ID, taken from the web_app_request_chat event's req_id

Result #

KeyboardButton

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_ID_INVALIDThe specified bot ID is invalid.
400WEBAPP_REQ_ID_INVALIDThe specified webapp_req_id is invalid.

Web events #

How telegram apps interact with webpages

Mini Apps on Telegram #

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

bots.requestWebViewButton #

Bots may use this method to prepare a peer request button for a Mini App, see here » for more info.

Bot buttons #

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.