17 std::vector<std::vector<Ptr<KeyboardButton>>>
keyboard;
49 nl::json json = nl::json::object();
71 void _fromJson(
const nl::json& json) {
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY_ARRAY(json, json_field, array_array_field)
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY_ARRAY(json, json_field, array_array_field, optional)
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
The interface of reply markup objects InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove ...
This object represents a custom keyboard with reply options (see Introduction to bots for details and...
bool oneTimeKeyboard
Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be...
ReplyKeyboardMarkup()=default
bool resizeKeyboard
Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g....
bool selective
Optional. Use this parameter if you want to show the keyboard to specific users only....
bool isPersistent
Optional. Requests clients to always show the keyboard when the regular keyboard is hidden....
std::vector< std::vector< Ptr< KeyboardButton > > > keyboard
Array of button rows, each represented by an Array of KeyboardButton objects @type Array of Array of ...
void fromJson(const nl::json &json) override
Deserializes this object from JSON.
ReplyKeyboardMarkup(const nl::json &json)
std::string inputFieldPlaceholder
Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters...
nl::json toJson() const override
Serializes this object to JSON.