class
Tourmaline::InputChecklist
- Tourmaline::InputChecklist
- Reference
- Object
Overview
Describes a checklist to create.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
-
#others_can_add_tasks=(others_can_add_tasks : Bool | Nil)
Optional.
-
#others_can_add_tasks? : Bool | Nil
Optional.
-
#others_can_mark_tasks_as_done=(others_can_mark_tasks_as_done : Bool | Nil)
Optional.
-
#others_can_mark_tasks_as_done? : Bool | Nil
Optional.
-
#parse_mode : ParseMode
Optional.
-
#parse_mode=(parse_mode : ParseMode)
Optional.
-
#tasks : Array(Tourmaline::InputChecklistTask)
List of 1-30 tasks in the checklist
-
#tasks=(tasks : Array(Tourmaline::InputChecklistTask))
List of 1-30 tasks in the checklist
-
#title : String
Title of the checklist; 1-255 characters after entities parsing
-
#title=(title : String)
Title of the checklist; 1-255 characters after entities parsing
-
#title_entities : Array(Tourmaline::MessageEntity)
Optional.
-
#title_entities=(title_entities : Array(Tourmaline::MessageEntity))
Optional.
Constructor Detail
Instance Method Detail
Optional. Pass True if other users can add tasks to the checklist
Optional. Pass True if other users can add tasks to the checklist
Optional. Pass True if other users can mark tasks as done or not done in the checklist
Optional. Pass True if other users can mark tasks as done or not done in the checklist
Optional. Mode for parsing entities in the title. See formatting options for more details.
Optional. Mode for parsing entities in the title. See formatting options for more details.
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.
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.