tgbot-cpp
Loading...
Searching...
No Matches
MessageReactionUpdated.h
Go to the documentation of this file.
1#ifndef TGBOT_MESSAGEREACTIONUPDATED_H
2#define TGBOT_MESSAGEREACTIONUPDATED_H
3
4#include "tgbot/types/Chat.h"
5#include "tgbot/types/User.h"
7
8#include <cstdint>
9#include <memory>
10#include <vector>
11
12namespace TgBot {
13
20
21public:
22 typedef std::shared_ptr<MessageReactionUpdated> Ptr;
23
28
32 std::int32_t messageId;
33
38
43
47 std::uint32_t date;
48
52 std::vector<ReactionType::Ptr> oldReaction;
53
57 std::vector<ReactionType::Ptr> newReaction;
58};
59}
60
61#endif //TGBOT_MESSAGEREACTIONUPDATED_H
std::shared_ptr< Chat > Ptr
Definition Chat.h:31
This object represents a change of a reaction on a message performed by a user.
std::vector< ReactionType::Ptr > oldReaction
Previous list of reaction types that were set by the user.
std::shared_ptr< MessageReactionUpdated > Ptr
std::int32_t messageId
Unique identifier of the message inside the chat.
User::Ptr user
Optional. The user that changed the reaction, if the user isn't anonymous.
std::vector< ReactionType::Ptr > newReaction
New list of reaction types that have been set by the user.
std::uint32_t date
Date of the change in Unix time.
Chat::Ptr actorChat
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous.
Chat::Ptr chat
The chat containing the message the user reacted to.
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:40