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

Inherits Object.

Description

Represents a list of reactions that can be added to a message.

Public Member Functions

 availableReactions ()
 availableReactions (array< object_ptr< availableReaction > > &&top_reactions_, array< object_ptr< availableReaction > > &&recent_reactions_, array< object_ptr< availableReaction > > &&popular_reactions_, bool allow_custom_emoji_, bool are_tags_, object_ptr< ReactionUnavailabilityReason > &&unavailability_reason_)
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 allow_custom_emoji_
 True, if any custom emoji reaction can be added by Telegram Premium subscribers.
bool are_tags_
 True, if the reactions will be tags and the message can be found by them.
array< object_ptr< availableReaction > > popular_reactions_
 List of popular reactions.
array< object_ptr< availableReaction > > recent_reactions_
 List of recently used reactions.
array< object_ptr< availableReaction > > top_reactions_
 List of reactions to be shown at the top.
object_ptr< ReactionUnavailabilityReason > unavailability_reason_
 The reason why the current user can't add reactions to the message, despite some other users can; may be null if none.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ availableReactions() [1/2]

availableReactions ( )

Represents a list of reactions that can be added to a message.

◆ availableReactions() [2/2]

availableReactions ( array< object_ptr< availableReaction > > && top_reactions_,
array< object_ptr< availableReaction > > && recent_reactions_,
array< object_ptr< availableReaction > > && popular_reactions_,
bool allow_custom_emoji_,
bool are_tags_,
object_ptr< ReactionUnavailabilityReason > && unavailability_reason_ )

Represents a list of reactions that can be added to a message.

Parameters
[in]top_reactions_List of reactions to be shown at the top.
[in]recent_reactions_List of recently used reactions.
[in]popular_reactions_List of popular reactions.
[in]allow_custom_emoji_True, if any custom emoji reaction can be added by Telegram Premium subscribers.
[in]are_tags_True, if the reactions will be tags and the message can be found by them.
[in]unavailability_reason_The reason why the current user can't add reactions to the message, despite some other users can; may be null if none.

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: