Constructor: keyboardButton

Back to constructors index

Bot keyboard button

Attributes:

NameTypeRequiredDescription
styleKeyboardButtonStyleOptional
textstringYesButton text

Type: KeyboardButton

Example:

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