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

Inherits Object.

Description

Contains information about a Saved Messages topic.

Public Fields

int53 id_
 Unique topic identifier.
 
object_ptr< SavedMessagesTopicTypetype_
 Type of the topic.
 
bool is_pinned_
 True, if the topic is pinned.
 
int64 order_
 A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order.
 
object_ptr< messagelast_message_
 Last message in the topic; may be null if none or unknown.
 
object_ptr< draftMessagedraft_message_
 A draft of a message in the topic; may be null if none.
 

Public Instance Methods

 savedMessagesTopic ()
 
 savedMessagesTopic (int53 id_, object_ptr< SavedMessagesTopicType > &&type_, bool is_pinned_, int64 order_, object_ptr< message > &&last_message_, object_ptr< draftMessage > &&draft_message_)
 
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 = -760684124
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ savedMessagesTopic() [1/2]

Contains information about a Saved Messages topic.

◆ savedMessagesTopic() [2/2]

savedMessagesTopic ( int53  id_,
object_ptr< SavedMessagesTopicType > &&  type_,
bool  is_pinned_,
int64  order_,
object_ptr< message > &&  last_message_,
object_ptr< draftMessage > &&  draft_message_ 
)

Contains information about a Saved Messages topic.

Parameters
[in]id_Unique topic identifier.
[in]type_Type of the topic.
[in]is_pinned_True, if the topic is pinned.
[in]order_A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order.
[in]last_message_Last message in the topic; may be null if none or unknown.
[in]draft_message_A draft of a message in the topic; may be null if none.

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: