26 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 a topic of a direct messages chat. https://core.telegram.org/bots/api#directmessagestopic.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
DirectMessagesTopic(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.
std::int64_t topicId
Unique identifier of the topic. This number may have more than 32 significant bits and some programmi...
DirectMessagesTopic()=default
Ptr< User > user
Optional. Information about the user that created the topic. Currently, it is always present.