class
Tourmaline::InputChecklistTask
- Tourmaline::InputChecklistTask
- Reference
- Object
Overview
Describes a task to add to a checklist.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(id : Int32 | Int64, text : String, parse_mode : ParseMode = ParseMode::Markdown, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#id : Int32 | Int64
Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist
-
#id=(id : Int32 | Int64)
Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist
-
#parse_mode : ParseMode
Optional.
-
#parse_mode=(parse_mode : ParseMode)
Optional.
-
#text : String
Text of the task; 1-100 characters after entities parsing
-
#text=(text : String)
Text of the task; 1-100 characters after entities parsing
-
#text_entities : Array(Tourmaline::MessageEntity)
Optional.
-
#text_entities=(text_entities : Array(Tourmaline::MessageEntity))
Optional.
Constructor Detail
Instance Method Detail
Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist
Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist
Optional. Mode for parsing entities in the text. See formatting options for more details.
Optional. Mode for parsing entities in the text. See formatting options for more details.
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.
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.