class
Tourmaline::ChecklistTask
- Tourmaline::ChecklistTask
- Reference
- Object
Overview
Describes a task in a checklist.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#completed_by_chat : Tourmaline::Chat | Nil
Optional.
-
#completed_by_chat=(completed_by_chat : Tourmaline::Chat | Nil)
Optional.
-
#completed_by_user : Tourmaline::User | Nil
Optional.
-
#completed_by_user=(completed_by_user : Tourmaline::User | Nil)
Optional.
-
#completion_date : Time | Nil
Optional.
-
#completion_date=(completion_date : Time | Nil)
Optional.
-
#id : Int32 | Int64
Unique identifier of the task
-
#id=(id : Int32 | Int64)
Unique identifier of the task
-
#text : String
Text of the task
-
#text=(text : String)
Text of the task
-
#text_entities : Array(Tourmaline::MessageEntity)
Optional.
-
#text_entities=(text_entities : Array(Tourmaline::MessageEntity))
Optional.
Constructor Detail
Instance Method Detail
Optional. Chat that completed the task; omitted if the task wasn't completed by a chat
Optional. Chat that completed the task; omitted if the task wasn't completed by a chat
Optional. User that completed the task; omitted if the task wasn't completed by a user
Optional. User that completed the task; omitted if the task wasn't completed by a user
Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed
Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed
Optional. Special entities that appear in the task text
Optional. Special entities that appear in the task text