PhpBotFramework
2.0.2
A framework for Telegram Bots' APIs.
|
Public Member Functions | |
__construct (CoreBot &$bot, array $buttons=array()) | |
Create an inline keyboard object with localizated buttons. More... | |
string array | getBackButton (bool $json_serialized=true) |
Get a simple Back button with back as callback_data . More... | |
string array | getBackSkipKeyboard (bool $json_serialized=true) |
Get a Back and a Skip buttons inthe same row. More... | |
string array | getChooseLanguageKeyboard (string $prefix='cl', bool $json_serialized=true) |
Get various buttons for set various languages. More... | |
Public Member Functions inherited from PhpBotFramework\Entities\InlineKeyboard | |
__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 | |
$bot | |
Stores a reference to the bot that's using the inline keyboard. | |
Protected Attributes inherited from PhpBotFramework\Entities\InlineKeyboard | |
$inline_keyboard | |
Stores the array of InlineKeyboardButton. | |
keyboard with localizated buttons.