class

Tourmaline::InputChecklistTask

Inherits JSON::Serializable < Reference < Object

Describes a task to add to a checklist.

Constructors

new(id : Int32 | Int64, text : String, parse_mode : ParseMode = ParseMode::Markdown, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

id

Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist

Source
id=(id : Int32 | Int64)

Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist

Source
parse_mode

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

Source
parse_mode=(parse_mode : ParseMode)

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

Source
text

Text of the task; 1-100 characters after entities parsing

Source
text=(text : String)

Text of the task; 1-100 characters after entities parsing

Source
text_entities

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

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

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

Source