class Tourmaline::ChecklistTask

Overview

Describes a task in a checklist.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

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

[View source]

Instance Method Detail

def completed_by_chat : Tourmaline::Chat | Nil #

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


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


[View source]
def completed_by_user : Tourmaline::User | Nil #

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


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


[View source]
def completion_date : Time | Nil #

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


[View source]
def completion_date=(completion_date : Time | Nil) #

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


[View source]
def id : Int32 | Int64 #

Unique identifier of the task


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

Unique identifier of the task


[View source]
def text : String #

Text of the task


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

Text of the task


[View source]
def text_entities : Array(Tourmaline::MessageEntity) #

Optional. Special entities that appear in the task text


[View source]
def text_entities=(text_entities : Array(Tourmaline::MessageEntity)) #

Optional. Special entities that appear in the task text


[View source]