MadelineProtoDocs/docs/API_docs/constructors/keyboardButtonWebView.md
2024-05-01 14:53:46 +02:00

1.2 KiB

title description nav_exclude image
keyboardButtonWebView Button to open a bot mini app using messages.requestWebView, sending over user information after user confirmation. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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:

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

Type: KeyboardButton

Example:

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