class Tourmaline::InputChecklistTask

Overview

Describes a task to add to a checklist.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : Int32 | Int64, text : String, parse_mode : ParseMode = ParseMode::Markdown, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def id : Int32 | Int64 #

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


[View source]
def id=(id : Int32 | Int64) #

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


[View source]
def parse_mode : ParseMode #

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


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

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


[View source]
def text : String #

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


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

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


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


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


[View source]