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:
223ID:
E846B1A0
- Parameters:
text (
str) – Button texturl (
str) – Web app urlstyle (
KeyboardButtonStyle, optional)
TL Schema
keyboardButtonWebView#e846b1a0
flags:#
style:flags.10?KeyboardButtonStyle
text:string
url:string
= KeyboardButton
Parameter Tree
KeyboardButtonWebView
├── style →
KeyboardButtonStyle (optional)│ └──
KeyboardButtonStyle│ ├── bg_primary →
true (optional)│ ├── bg_danger →
true (optional)│ ├── bg_success →
true (optional)│ └── icon →
long (optional)├── text →
string└── url →
stringExample
KeyboardButtonWebView(
text="Open",
url="https://google.com",
)