34 nl::json json = 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 an inline button that switches the current user to inline mode in a chosen cha...
SwitchInlineQueryChosenChat(const nl::json &json)
bool allowGroupChats
Optional. True, if group and supergroup chats can be chosen.
bool allowUserChats
Optional. True, if private chats with users can be chosen.
std::string query
Optional. The default inline query to be inserted in the input field. If left empty,...
SwitchInlineQueryChosenChat()=default
bool allowChannelChats
Optional. True, if channel chats can be chosen.
bool allowBotChats
Optional. True, if private chats with bots can be chosen.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
nl::json toJson() const
Serializes this object to JSON.