Link Search Menu Expand Document

Constructor: keyboardButton

Back to constructors index

Bot keyboard button

Attributes:

NameTypeRequiredDescription
styleKeyboardButtonStyleOptional
textstringYesButton text
typeButtonTypeYes

Type: KeyboardButton

Example:

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