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

Inherits Object.

Description

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

Public Fields

array< object_ptr< availableReaction > > top_reactions_
 List of reactions to be shown at the top.
 
array< object_ptr< availableReaction > > recent_reactions_
 List of recently used reactions.
 
array< object_ptr< availableReaction > > popular_reactions_
 List of popular reactions.
 
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.
 
object_ptr< ReactionUnavailabilityReasonunavailability_reason_
 The reason why the current user can't add reactions to the message, despite some other users can; may be null if none.
 

Public Instance Methods

 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 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 = 912529522
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ availableReactions() [1/2]

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.

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: