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

This object represents a change of a reaction on a message performed by a user. https://core.telegram.org/bots/api#messagereactionupdated. More...

#include <MessageReactionUpdated.hpp>

Public Member Functions

 MessageReactionUpdated ()=default
 
 MessageReactionUpdated (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 the user reacted to. More...
 
std::int32_t messageId {}
 Unique identifier of the message inside the chat. More...
 
Ptr< Useruser
 Optional. The user that changed the reaction, if the user isn't anonymous. More...
 
Ptr< ChatactorChat
 Optional. The chat on behalf of which the reaction was changed, if the user is anonymous. More...
 
std::time_t date {}
 Date of the change in Unix time. More...
 
std::vector< Ptr< ReactionType > > oldReaction
 Previous list of reaction types that were set by the user. More...
 
std::vector< Ptr< ReactionType > > newReaction
 New list of reaction types that have been set by the user. More...
 

Detailed Description

This object represents a change of a reaction on a message performed by a user. https://core.telegram.org/bots/api#messagereactionupdated.

Definition at line 10 of file MessageReactionUpdated.hpp.

Constructor & Destructor Documentation

◆ MessageReactionUpdated() [1/2]

tgbotxx::MessageReactionUpdated::MessageReactionUpdated ( )
default

◆ MessageReactionUpdated() [2/2]

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

Definition at line 12 of file MessageReactionUpdated.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 52 of file MessageReactionUpdated.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 39 of file MessageReactionUpdated.hpp.

Member Data Documentation

◆ actorChat

Ptr<Chat> tgbotxx::MessageReactionUpdated::actorChat

Optional. The chat on behalf of which the reaction was changed, if the user is anonymous.

Definition at line 26 of file MessageReactionUpdated.hpp.

◆ chat

Ptr<Chat> tgbotxx::MessageReactionUpdated::chat

The chat containing the message the user reacted to.

Definition at line 17 of file MessageReactionUpdated.hpp.

◆ date

std::time_t tgbotxx::MessageReactionUpdated::date {}

Date of the change in Unix time.

Definition at line 29 of file MessageReactionUpdated.hpp.

◆ messageId

std::int32_t tgbotxx::MessageReactionUpdated::messageId {}

Unique identifier of the message inside the chat.

Definition at line 20 of file MessageReactionUpdated.hpp.

◆ newReaction

std::vector<Ptr<ReactionType> > tgbotxx::MessageReactionUpdated::newReaction

New list of reaction types that have been set by the user.

Definition at line 35 of file MessageReactionUpdated.hpp.

◆ oldReaction

std::vector<Ptr<ReactionType> > tgbotxx::MessageReactionUpdated::oldReaction

Previous list of reaction types that were set by the user.

Definition at line 32 of file MessageReactionUpdated.hpp.

◆ user

Ptr<User> tgbotxx::MessageReactionUpdated::user

Optional. The user that changed the reaction, if the user isn't anonymous.

Definition at line 23 of file MessageReactionUpdated.hpp.


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