tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
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< Chat > | chat |
The chat containing the message the user reacted to. More... | |
std::int32_t | messageId {} |
Unique identifier of the message inside the chat. More... | |
Ptr< User > | user |
Optional. The user that changed the reaction, if the user isn't anonymous. More... | |
Ptr< Chat > | actorChat |
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... | |
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.
|
default |
|
inlineexplicit |
Definition at line 12 of file MessageReactionUpdated.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 52 of file MessageReactionUpdated.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 39 of file MessageReactionUpdated.hpp.
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous.
Definition at line 26 of file MessageReactionUpdated.hpp.
The chat containing the message the user reacted to.
Definition at line 17 of file MessageReactionUpdated.hpp.
std::time_t tgbotxx::MessageReactionUpdated::date {} |
Date of the change in Unix time.
Definition at line 29 of file MessageReactionUpdated.hpp.
std::int32_t tgbotxx::MessageReactionUpdated::messageId {} |
Unique identifier of the message inside the chat.
Definition at line 20 of file MessageReactionUpdated.hpp.
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.
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.
Optional. The user that changed the reaction, if the user isn't anonymous.
Definition at line 23 of file MessageReactionUpdated.hpp.