Type: KeyboardButton

Back to types index

Clicking these buttons:

To click these buttons simply run the click method:

$result = $KeyboardButton->click();

$result can be one of the following:

You can also access the properties of the constructor as a normal array, for example $button[‘name’]

Possible values (constructors):

keyboardButton

keyboardButtonUrl

keyboardButtonCallback

keyboardButtonRequestPhone

keyboardButtonRequestGeoLocation

keyboardButtonSwitchInline

keyboardButtonGame

keyboardButtonBuy

keyboardButtonUrlAuth

inputKeyboardButtonUrlAuth

Methods that return an object of this type (methods):

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.