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

Inherits Object.

Description

Contains information about a user who added paid reactions.

Public Member Functions

 paidReactor ()
 paidReactor (object_ptr< MessageSender > &&sender_id_, int53 star_count_, bool is_top_, bool is_me_, bool is_anonymous_)
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

bool is_anonymous_
 True, if the reactor is anonymous.
bool is_me_
 True, if the paid reaction was added by the current user.
bool is_top_
 True, if the reactor is one of the most active reactors; may be false if the reactor is the current user.
object_ptr< MessageSender > sender_id_
 Identifier of the user or chat that added the reactions; may be null for anonymous reactors that aren't the current user.
int53 star_count_
 Number of Telegram Stars added.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ paidReactor() [1/2]

paidReactor ( )

Contains information about a user who added paid reactions.

◆ paidReactor() [2/2]

paidReactor ( object_ptr< MessageSender > && sender_id_,
int53 star_count_,
bool is_top_,
bool is_me_,
bool is_anonymous_ )

Contains information about a user who added paid reactions.

Parameters
[in]sender_id_Identifier of the user or chat that added the reactions; may be null for anonymous reactors that aren't the current user.
[in]star_count_Number of Telegram Stars added.
[in]is_top_True, if the reactor is one of the most active reactors; may be false if the reactor is the current user.
[in]is_me_True, if the paid reaction was added by the current user.
[in]is_anonymous_True, if the reactor is anonymous.

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: