KeyboardButtonBuy
- class pyrogram.raw.types.KeyboardButtonBuy
Button to buy a product
Constructor of
KeyboardButton.- Details:
Layer:
223ID:
3FA53905
- Parameters:
text (
str) – Button textstyle (
KeyboardButtonStyle, optional)
TL Schema
keyboardButtonBuy#3fa53905
flags:#
style:flags.10?KeyboardButtonStyle
text:string
= KeyboardButton
Parameter Tree
KeyboardButtonBuy
├── style →
KeyboardButtonStyle (optional)│ └──
KeyboardButtonStyle│ ├── bg_primary →
true (optional)│ ├── bg_danger →
true (optional)│ ├── bg_success →
true (optional)│ └── icon →
long (optional)└── text →
stringExample
KeyboardButtonBuy(
text="Open",
)