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