Link Search Menu Expand Document

Constructor: keyboardButtonSimpleWebView

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
textstringYesButton text
urlstringYesWeb app URL

Type: KeyboardButton

Example:

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