34 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_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.
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
Describes a task in a checklist. https://core.telegram.org/bots/api#checklisttask.
std::string text
Text of the task.
std::time_t completionDate
Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed.
ChecklistTask(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.
Ptr< User > completedByUser
Optional. User that completed the task; omitted if the task wasn't completed.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::vector< Ptr< MessageEntity > > textEntities
Optional. Special entities that appear in the task text.