keyboardButtonWebView

Button to open a bot web app using messages.requestWebView, sending over user information after user confirmation.

Can only be sent or received as part of an inline keyboard, use keyboardButtonSimpleWebView for reply keyboards.

keyboardButtonWebView#13767230 text:string url:string = KeyboardButton;

Parameters

Name Type Description
text string Button text
url string Web app url

Type

KeyboardButton

Related pages

Bot web apps

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

messages.requestWebView

Open a bot web app, sending over user information after user confirmation.

After calling this method, until the user closes the webview, messages.prolongWebView must be called every 60 seconds.

keyboardButtonSimpleWebView

Button to open a bot web app using messages.requestSimpleWebView, without sending user information to the web app.

Can only be sent or received as part of a reply keyboard, use keyboardButtonWebView for inline keyboards.