class

Tourmaline::ChecklistTask

Inherits JSON::Serializable < Reference < Object

Describes a task in a checklist.

Constructors

new(id : Int32 | Int64, text : String, text_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, completed_by_user : Tourmaline::User | Nil = nil, completed_by_chat : Tourmaline::Chat | Nil = nil, completion_date : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

completed_by_chat

Optional. Chat that completed the task; omitted if the task wasn't completed by a chat

Source
completed_by_chat=(completed_by_chat : Tourmaline::Chat | Nil)

Optional. Chat that completed the task; omitted if the task wasn't completed by a chat

Source
completed_by_user

Optional. User that completed the task; omitted if the task wasn't completed by a user

Source
completed_by_user=(completed_by_user : Tourmaline::User | Nil)

Optional. User that completed the task; omitted if the task wasn't completed by a user

Source
completion_date

Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed

Source
completion_date=(completion_date : Time | Nil)

Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed

Source
id

Unique identifier of the task

Source
id=(id : Int32 | Int64)

Unique identifier of the task

Source
text

Text of the task

Source
text=(text : String)

Text of the task

Source
text_entities

Optional. Special entities that appear in the task text

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

Optional. Special entities that appear in the task text

Source