Link Search Menu Expand Document

Constructor: keyboardButtonWebView

Back to constructors index

Button to open a bot mini 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.

Attributes:

NameTypeRequiredDescription
textstringYesButton text
urlstringYesWeb app url

Type: KeyboardButton

Example:

$keyboardButtonWebView = ['_' => 'keyboardButtonWebView', 'text' => 'string', 'url' => 'string'];