tgbot-cpp
Loading...
Searching...
No Matches
PollAnswer.h
Go to the documentation of this file.
1#ifndef TGBOT_CPP_POLLANSWER_H
2#define TGBOT_CPP_POLLANSWER_H
3
4#include "tgbot/types/User.h"
5
6#include <string>
7#include <memory>
8#include <vector>
9
10namespace TgBot {
11
18
19public:
20 typedef std::shared_ptr<PollAnswer> Ptr;
21
25 std::string pollId;
26
31
36 std::vector<std::int32_t> optionIds;
37};
38}
39
40#endif //TGBOT_CPP_POLLANSWER_H
This object represents an answer of a user in a non-anonymous poll.
Definition PollAnswer.h:17
std::shared_ptr< PollAnswer > Ptr
Definition PollAnswer.h:20
std::string pollId
Unique poll identifier.
Definition PollAnswer.h:25
User::Ptr user
The user, who changed the answer to the poll.
Definition PollAnswer.h:30
std::vector< std::int32_t > optionIds
0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their v...
Definition PollAnswer.h:36
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:39