PhpBotFramework
2.0.2
A framework for Telegram Bots' APIs.
|
Inline Keyboard handler that create and handle inline keyboard buttons. More...
Public Member Functions | |
__construct (array $buttons=array()) | |
Create an inline keyboard object. More... | |
string | get (bool $clear_keyboard=true) |
Get a JSON object containing the inline keyboard. More... | |
array | getArray (bool $clean_keyboard=true) |
Get the array containing the buttons. More... | |
addLevelButtons (array ... $buttons) | |
Add buttons for the current row. More... | |
addButton (string $text, string $data_type, string $data) | |
Add a button. More... | |
changeRow () | |
Change row for the current keyboard. More... | |
clearKeyboard () | |
Clear inline keyboard. | |
addListKeyboard (int $index, int $list, $prefix='list') | |
Add a list keyboard. More... | |
Protected Attributes | |
$inline_keyboard | |
Stores the array of InlineKeyboardButton. | |
Inline Keyboard handler that create and handle inline keyboard buttons.
It stores the inline keyboard buttons added until get() is called. It also provides some basic button to get, like Menu and Back buttons plus the dynamic-keyboard for menu browsing.