Class for creating Inline keyboard json_button.
More...
#include <keyboard_button.hpp>
|
|
std::string | text |
| | Label text of the json_button.
|
| |
|
std::string | data |
| | Data of the json_button (depends on type)
|
| |
|
EButton | button_type |
| | Type of the json_button.
|
| |
Class for creating Inline keyboard json_button.
This object represents one json_button of an inline keyboard, used in Keyboard. (https://core.telegram.org/bots/api#inlinekeyboardbutton)
◆ KeyboardButton() [1/2]
Constructor by parameters.
- Parameters
-
| text | Label text of the json_button |
| data | Data of the json_button (depends on the type) |
| button_type | Type of the json_button to create |
- Returns
- Returns a new inlineKeyboardButton
◆ KeyboardButton() [2/2]
Constructor by JSON.
- Parameters
-
| json_button | JSON-serialized button |
- Returns
- Returns a new inlineKeyboardButton
The documentation for this class was generated from the following file: