22 std::vector<Ptr<ChecklistTask>>
tasks;
34 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#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 checklist. https://core.telegram.org/bots/api#checklist.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
bool othersCanMarkTasksAsDone
Optional. True, if users other than the creator of the list can mark tasks as done or not done.
Checklist(const nl::json &json)
std::string title
Title of the checklist.
bool othersCanAddTasks
Optional. True, if users other than the creator of the list can add tasks to the list.
std::vector< Ptr< MessageEntity > > titleEntities
Optional. Special entities that appear in the checklist title.
std::vector< Ptr< ChecklistTask > > tasks
List of tasks in the checklist.
nl::json toJson() const
Serializes this object to JSON.