Skip to main content

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.

type tg.KeyboardButtonWebView struct { /* ... */ }

Implements KeyboardButton.

Fieldsโ€‹

NameTypeRequiredDescription
StyleKeyboardButtonStyleโ€”Button style, see here ยป for more info on button styles.
TextstringyesButton text
URLstringyesWeb app url

Referencesโ€‹