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

This object represents reaction changes on a message with anonymous reactions. https://core.telegram.org/bots/api#messagereactioncountupdated. More...

#include <MessageReactionCountUpdated.hpp>

Public Member Functions

 MessageReactionCountUpdated ()=default
 
 MessageReactionCountUpdated (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< Chatchat
 The chat containing the message. More...
 
std::int32_t messageId {}
 Unique message identifier inside the chat. More...
 
std::time_t date {}
 Date of the change in Unix time. More...
 
std::vector< Ptr< ReactionCount > > reactions
 List of reactions that are present on the message. More...
 

Detailed Description

This object represents reaction changes on a message with anonymous reactions. https://core.telegram.org/bots/api#messagereactioncountupdated.

Definition at line 10 of file MessageReactionCountUpdated.hpp.

Constructor & Destructor Documentation

◆ MessageReactionCountUpdated() [1/2]

tgbotxx::MessageReactionCountUpdated::MessageReactionCountUpdated ( )
default

◆ MessageReactionCountUpdated() [2/2]

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

Definition at line 12 of file MessageReactionCountUpdated.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 41 of file MessageReactionCountUpdated.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 31 of file MessageReactionCountUpdated.hpp.

Member Data Documentation

◆ chat

Ptr<Chat> tgbotxx::MessageReactionCountUpdated::chat

The chat containing the message.

Definition at line 17 of file MessageReactionCountUpdated.hpp.

◆ date

std::time_t tgbotxx::MessageReactionCountUpdated::date {}

Date of the change in Unix time.

Definition at line 23 of file MessageReactionCountUpdated.hpp.

◆ messageId

std::int32_t tgbotxx::MessageReactionCountUpdated::messageId {}

Unique message identifier inside the chat.

Definition at line 20 of file MessageReactionCountUpdated.hpp.

◆ reactions

std::vector<Ptr<ReactionCount> > tgbotxx::MessageReactionCountUpdated::reactions

List of reactions that are present on the message.

Definition at line 26 of file MessageReactionCountUpdated.hpp.


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