tgbot-cpp
Loading...
Searching...
No Matches
PollAnswer.h
Go to the documentation of this file.
1#ifndef TGBOT_POLLANSWER_H
2#define TGBOT_POLLANSWER_H
3
4#include "tgbot/types/Chat.h"
5#include "tgbot/types/User.h"
6
7#include <cstdint>
8#include <string>
9#include <memory>
10#include <vector>
11
12namespace TgBot {
13
20
21public:
22 typedef std::shared_ptr<PollAnswer> Ptr;
23
27 std::string pollId;
28
33
38
44 std::vector<std::int32_t> optionIds;
45};
46}
47
48#endif //TGBOT_POLLANSWER_H
std::shared_ptr< Chat > Ptr
Definition Chat.h:31
This object represents an answer of a user in a non-anonymous poll.
Definition PollAnswer.h:19
std::shared_ptr< PollAnswer > Ptr
Definition PollAnswer.h:22
std::string pollId
Unique poll identifier.
Definition PollAnswer.h:27
Chat::Ptr voterChat
Optional. The chat that changed the answer to the poll, if the voter is anonymous.
Definition PollAnswer.h:32
User::Ptr user
Optional. The user that changed the answer to the poll, if the voter isn't anonymous.
Definition PollAnswer.h:37
std::vector< std::int32_t > optionIds
0-based identifiers of chosen answer options.
Definition PollAnswer.h:44
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:40