class

Tourmaline::Checklist

Inherits JSON::Serializable < Reference < Object

Describes a checklist.

Constructors

new(title : String, tasks : Array(Tourmaline::ChecklistTask) = [] of Tourmaline::ChecklistTask, title_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, others_can_add_tasks : Bool | Nil = nil, others_can_mark_tasks_as_done : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

others_can_add_tasks=(others_can_add_tasks : Bool | Nil)

Optional. True, if users other than the creator of the list can add tasks to the list

Source
others_can_add_tasks?

Optional. True, if users other than the creator of the list can add tasks to the list

Source
others_can_mark_tasks_as_done=(others_can_mark_tasks_as_done : Bool | Nil)

Optional. True, if users other than the creator of the list can mark tasks as done or not done

Source
others_can_mark_tasks_as_done?

Optional. True, if users other than the creator of the list can mark tasks as done or not done

Source
tasks

List of tasks in the checklist

Source

List of tasks in the checklist

Source
title

Title of the checklist

Source
title=(title : String)

Title of the checklist

Source
title_entities

Optional. Special entities that appear in the checklist title

Source
title_entities=(title_entities : Array(Tourmaline::MessageEntity))

Optional. Special entities that appear in the checklist title

Source