KeyboardButtonWebView

class pyrogram.raw.types.KeyboardButtonWebView

Button to open a bot mini app using messages.requestWebView, sending over user information after user confirmation.

Constructor of KeyboardButton.

Details:
  • Layer: 223

  • ID: E846B1A0

Parameters:

TL Schema

keyboardButtonWebView#e846b1a0
flags:#
style:flags.10?KeyboardButtonStyle
text:string
url:string

= KeyboardButton

Parameter Tree

KeyboardButtonWebView
├── styleKeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primarytrue (optional)
│ ├── bg_dangertrue (optional)
│ ├── bg_successtrue (optional)
│ └── iconlong (optional)
├── textstring
└── urlstring

Example

KeyboardButtonWebView(
    text="Open",
    url="https://google.com",
)