39 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
#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.
Describes the connection of the bot with a business account. https://core.telegram....
void fromJson(const nl::json &json)
Deserializes this object from JSON.
bool isEnabled
True, if the connection is active.
std::int64_t userChatId
Identifier of a private chat with the user who created the business connection. This number may have ...
Ptr< User > user
Business account user that created the business connection.
BusinessConnection(const nl::json &json)
Ptr< BusinessBotRights > rights
Optional. Rights of the business bot.
std::string id
Unique identifier of the business connection.
nl::json toJson() const
Serializes this object to JSON.
std::int32_t date
Date the connection was established in Unix time.
BusinessConnection()=default