Constructor: keyboardButtonWebView
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:
Name | Type | Required | Description |
---|---|---|---|
text | string | Yes | Button text |
url | string | Yes | Web app url |
Type: KeyboardButton
Example:
$keyboardButtonWebView = ['_' => 'keyboardButtonWebView', 'text' => 'string', 'url' => 'string'];