Constructor: keyboardButtonGame

Back to constructors index

Button to start a game

Attributes:

NameTypeRequiredDescription
styleKeyboardButtonStyleOptional
textstringYesButton text

Type: KeyboardButton

Example:

$keyboardButtonGame = ['_' => 'keyboardButtonGame', 'style' => KeyboardButtonStyle, 'text' => 'string'];