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

Inherits Object.

Description

Describes a checklist to be sent.

Public Fields

object_ptr< formattedTexttitle_
 Title of the checklist; 1-getOption("checklist_title_length_max") characters. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities.
 
array< object_ptr< inputChecklistTask > > tasks_
 List of tasks in the checklist; 1-getOption("checklist_task_count_max") tasks.
 
bool others_can_add_tasks_
 True, if other users can add tasks to the list.
 
bool others_can_mark_tasks_as_done_
 True, if other users can mark tasks as done or not done.
 

Public Instance Methods

 inputChecklist ()
 
 inputChecklist (object_ptr< formattedText > &&title_, array< object_ptr< inputChecklistTask >> &&tasks_, bool others_can_add_tasks_, bool others_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 = -145125739
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ inputChecklist() [1/2]

Describes a checklist to be sent.

◆ inputChecklist() [2/2]

inputChecklist ( object_ptr< formattedText > &&  title_,
array< object_ptr< inputChecklistTask >> &&  tasks_,
bool  others_can_add_tasks_,
bool  others_can_mark_tasks_as_done_ 
)

Describes a checklist to be sent.

Parameters
[in]title_Title of the checklist; 1-getOption("checklist_title_length_max") characters. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities.
[in]tasks_List of tasks in the checklist; 1-getOption("checklist_task_count_max") tasks.
[in]others_can_add_tasks_True, if other users can add tasks to the list.
[in]others_can_mark_tasks_as_done_True, if other users can mark tasks as done or not done.

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: