KeyboardButtonBuy

class pyrogram.raw.types.KeyboardButtonBuy

Button to buy a product

Constructor of KeyboardButton.

Details:
  • Layer: 224

  • ID: 3FA53905

Parameters:
Functions:

This object can be returned by 1 function.

bots.GetRequestedWebViewButton

Telegram API function.

TL Schema

keyboardButtonBuy#3fa53905
flags:#
style:flags.10?KeyboardButtonStyle
text:string

= KeyboardButton

Parameter Tree

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

Example

KeyboardButtonBuy(
    text="Open",
)