tgbot-cpp
Loading...
Searching...
No Matches
TgBot::PollAnswer Class Reference

This object represents an answer of a user in a non-anonymous poll. More...

#include <PollAnswer.h>

Public Types

typedef std::shared_ptr< PollAnswerPtr
 

Public Attributes

std::string pollId
 Unique poll identifier.
 
User::Ptr user
 The user, who changed the answer to the poll.
 
std::vector< std::int32_t > optionIds
 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
 

Detailed Description

This object represents an answer of a user in a non-anonymous poll.

Definition at line 17 of file PollAnswer.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<PollAnswer> TgBot::PollAnswer::Ptr

Definition at line 20 of file PollAnswer.h.

Member Data Documentation

◆ optionIds

std::vector<std::int32_t> TgBot::PollAnswer::optionIds

0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.

Definition at line 36 of file PollAnswer.h.

◆ pollId

std::string TgBot::PollAnswer::pollId

Unique poll identifier.

Definition at line 25 of file PollAnswer.h.

◆ user

User::Ptr TgBot::PollAnswer::user

The user, who changed the answer to the poll.

Definition at line 30 of file PollAnswer.h.


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