* refactor * Apply fixes from StyleCI * Implement https and http transport, add support for new req_pq_multi, send pending acks and objects in containers along with the next method call, remove dependency on the socket extension. * Apply fixes from StyleCI * Make types with empty constructors optional, fix phar archives (fixes #217) * Apply fixes from StyleCI * Update to layer 75 * Update github pages gemfile.lock
1.5 KiB
1.5 KiB
title | description |
---|---|
KeyboardButton | constructors and methods of type KeyboardButton |
Type: KeyboardButton
Clicking these buttons:
To click these buttons simply run the click
method:
$result = $KeyboardButton->click();
$result
can be one of the following:
-
A string - If the button is a keyboardButtonUrl
-
Updates - If the button is a keyboardButton, the message will be sent to the chat, in reply to the message with the keyboard
-
messages_BotCallbackAnswer - If the button is a keyboardButtonCallback or a keyboardButtonGame the button will be pressed and the result will be returned
-
false
- If the button is an unsupported button, like keyboardButtonRequestPhone, keyboardButtonRequestGeoLocation, keyboardButtonSwitchInlinekeyboardButtonBuy; you will have to parse data from these buttons manually
Possible values (constructors):
keyboardButtonRequestGeoLocation