KeyboardButton
- class pyrogram.raw.types.KeyboardButton
Bot keyboard button
Constructor of
KeyboardButton.- Details:
Layer:
223ID:
7D170CFF
- Parameters:
text (
str) – Button textstyle (
KeyboardButtonStyle, optional)
TL Schema
keyboardButton#7d170cff
flags:#
style:flags.10?KeyboardButtonStyle
text:string
= KeyboardButton
Parameter Tree
KeyboardButton
├── style →
KeyboardButtonStyle (optional)│ └──
KeyboardButtonStyle│ ├── bg_primary →
true (optional)│ ├── bg_danger →
true (optional)│ ├── bg_success →
true (optional)│ └── icon →
long (optional)└── text →
stringExample
KeyboardButton(
text="Open",
)