21 nl::json cmd = nl::json::object();
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
This object represents a bot command. https://core.telegram.org/bots/api#botcommand.
void fromJson(const nl::json &json)
std::string description
Description of the command; 1-256 characters.
std::string command
Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and undersco...
BotCommand(const nl::json &json)