List of all members | Public Fields | Public Instance Methods | Static Public Attributes
checklist Class Referencefinal

Inherits Object.

Description

Describes a checklist.

Public Fields

object_ptr< formattedTexttitle_
 Title of the checklist; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities.
 
array< object_ptr< checklistTask > > tasks_
 List of tasks in the checklist.
 
bool others_can_add_tasks_
 True, if users other than creator of the list can add tasks to the list.
 
bool can_add_tasks_
 True, if the current user can add tasks to the list if they have Telegram Premium subscription.
 
bool others_can_mark_tasks_as_done_
 True, if users other than creator of the list can mark tasks as done or not done. If true, then the checklist is called "group checklist".
 
bool can_mark_tasks_as_done_
 True, if the current user can mark tasks as done or not done if they have Telegram Premium subscription.
 

Public Instance Methods

 checklist ()
 
 checklist (object_ptr< formattedText > &&title_, array< object_ptr< checklistTask >> &&tasks_, bool others_can_add_tasks_, bool can_add_tasks_, bool others_can_mark_tasks_as_done_, bool can_mark_tasks_as_done_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = -987598247
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ checklist() [1/2]

checklist ( )

Describes a checklist.

◆ checklist() [2/2]

checklist ( object_ptr< formattedText > &&  title_,
array< object_ptr< checklistTask >> &&  tasks_,
bool  others_can_add_tasks_,
bool  can_add_tasks_,
bool  others_can_mark_tasks_as_done_,
bool  can_mark_tasks_as_done_ 
)

Describes a checklist.

Parameters
[in]title_Title of the checklist; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities.
[in]tasks_List of tasks in the checklist.
[in]others_can_add_tasks_True, if users other than creator of the list can add tasks to the list.
[in]can_add_tasks_True, if the current user can add tasks to the list if they have Telegram Premium subscription.
[in]others_can_mark_tasks_as_done_True, if users other than creator of the list can mark tasks as done or not done. If true, then the checklist is called "group checklist".
[in]can_mark_tasks_as_done_True, if the current user can mark tasks as done or not done if they have Telegram Premium subscription.

Method Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: