class

Tourmaline::InputChecklist

Inherits JSON::Serializable < Reference < Object

Describes a checklist to create.

Constructors

new(title : String, tasks : Array(Tourmaline::InputChecklistTask) = [] of Tourmaline::InputChecklistTask, parse_mode : ParseMode = ParseMode::Markdown, 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. Pass True if other users can add tasks to the checklist

Source
others_can_add_tasks?

Optional. Pass True if other users can add tasks to the checklist

Source
others_can_mark_tasks_as_done=(others_can_mark_tasks_as_done : Bool | Nil)

Optional. Pass True if other users can mark tasks as done or not done in the checklist

Source
others_can_mark_tasks_as_done?

Optional. Pass True if other users can mark tasks as done or not done in the checklist

Source
parse_mode

Optional. Mode for parsing entities in the title. See formatting options for more details.

Source
parse_mode=(parse_mode : ParseMode)

Optional. Mode for parsing entities in the title. See formatting options for more details.

Source
tasks

List of 1-30 tasks in the checklist

Source

List of 1-30 tasks in the checklist

Source
title

Title of the checklist; 1-255 characters after entities parsing

Source
title=(title : String)

Title of the checklist; 1-255 characters after entities parsing

Source
title_entities

Optional. List of special entities that appear in the title, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.

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

Optional. List of special entities that appear in the title, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.

Source