class Tourmaline::InputChecklist

Overview

Describes a checklist to create.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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) #

[View source]

Instance Method Detail

def others_can_add_tasks=(others_can_add_tasks : Bool | Nil) #

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


[View source]
def others_can_add_tasks? : Bool | Nil #

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


[View source]
def 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


[View source]
def 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


[View source]
def parse_mode : ParseMode #

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


[View source]
def parse_mode=(parse_mode : ParseMode) #

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


[View source]
def tasks : Array(Tourmaline::InputChecklistTask) #

List of 1-30 tasks in the checklist


[View source]
def tasks=(tasks : Array(Tourmaline::InputChecklistTask)) #

List of 1-30 tasks in the checklist


[View source]
def title : String #

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


[View source]
def title=(title : String) #

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


[View source]
def 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.


[View source]
def 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.


[View source]