TDLib
Loading...
Searching...
No Matches
sponsoredChat Class Referencefinal

Inherits Object.

Description

Describes a sponsored chat.

Public Member Functions

 sponsoredChat ()
 sponsoredChat (int53 unique_id_, int53 chat_id_, string const &sponsor_info_, string const &additional_info_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

string additional_info_
 If non-empty, additional information about the sponsored chat to be shown along with the chat.
int53 chat_id_
 Chat identifier.
string sponsor_info_
 Additional optional information about the sponsor to be shown along with the chat.
int53 unique_id_
 Unique identifier of this result.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ sponsoredChat() [1/2]

sponsoredChat ( )

Describes a sponsored chat.

◆ sponsoredChat() [2/2]

sponsoredChat ( int53 unique_id_,
int53 chat_id_,
string const & sponsor_info_,
string const & additional_info_ )

Describes a sponsored chat.

Parameters
[in]unique_id_Unique identifier of this result.
[in]chat_id_Chat identifier.
[in]sponsor_info_Additional optional information about the sponsor to be shown along with the chat.
[in]additional_info_If non-empty, additional information about the sponsored chat to be shown along with the chat.

Member Function 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: