KeyboardButtonGame

class pyrogram.raw.types.KeyboardButtonGame

Button to start a game

Constructor of KeyboardButton.

Details:
  • Layer: 227

  • ID: 89C590F9

Parameters:
Functions:

This object can be returned by 1 function.

bots.GetRequestedWebViewButton

Telegram API function.

TL Schema

keyboardButtonGame#89c590f9
flags:#
style:flags.10?KeyboardButtonStyle
text:string

= KeyboardButton

Parameter Tree

KeyboardButtonGame
├── style → KeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primary → true (optional)
│ ├── bg_danger → true (optional)
│ ├── bg_success → true (optional)
│ └── icon → long (optional)
└── text → string

Example

KeyboardButtonGame(
    text="Open",
)