Constructor: keyboardButtonRequestPhone

Back to constructors index

Button to request a user’s phone number

Attributes:

NameTypeRequiredDescription
styleKeyboardButtonStyleOptional
textstringYesButton text

Type: KeyboardButton

Example:

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