tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::ReactionCount Struct Reference

Represents a reaction added to a message along with the number of times it was added. https://core.telegram.org/bots/api#reactioncount. More...

#include <ReactionCount.hpp>

Public Member Functions

 ReactionCount ()=default
 
 ReactionCount (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

Ptr< ReactionTypetype
 Type of the reaction. More...
 
std::int32_t totalCount {}
 Number of times the reaction was added. More...
 

Detailed Description

Represents a reaction added to a message along with the number of times it was added. https://core.telegram.org/bots/api#reactioncount.

Definition at line 8 of file ReactionCount.hpp.

Constructor & Destructor Documentation

◆ ReactionCount() [1/2]

tgbotxx::ReactionCount::ReactionCount ( )
default

◆ ReactionCount() [2/2]

tgbotxx::ReactionCount::ReactionCount ( const nl::json &  json)
inlineexplicit

Definition at line 10 of file ReactionCount.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::ReactionCount::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 30 of file ReactionCount.hpp.

◆ toJson()

nl::json tgbotxx::ReactionCount::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 22 of file ReactionCount.hpp.

Member Data Documentation

◆ totalCount

std::int32_t tgbotxx::ReactionCount::totalCount {}

Number of times the reaction was added.

Definition at line 18 of file ReactionCount.hpp.

◆ type

Ptr<ReactionType> tgbotxx::ReactionCount::type

Type of the reaction.

Definition at line 15 of file ReactionCount.hpp.


The documentation for this struct was generated from the following file: