PhpBotFramework  2.0.2
A framework for Telegram Bots' APIs.
Public Member Functions | Protected Attributes | List of all members
PhpBotFramework\Entities\InlineKeyboard Class Reference

Inline Keyboard handler that create and handle inline keyboard buttons. More...

Inheritance diagram for PhpBotFramework\Entities\InlineKeyboard:
PhpBotFramework\Localization\Button

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.
 

Detailed Description

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.


The documentation for this class was generated from the following file: