KeyboardButtonSimpleWebView

class pyrogram.raw.types.KeyboardButtonSimpleWebView

Button to open a bot mini app using messages.requestSimpleWebView, without sending user information to the web app.

Constructor of KeyboardButton.

Details:
  • Layer: 223

  • ID: E15C4370

Parameters:

TL Schema

keyboardButtonSimpleWebView#e15c4370
flags:#
style:flags.10?KeyboardButtonStyle
text:string
url:string

= KeyboardButton

Parameter Tree

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

Example

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