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.
 
Chat::Ptr voterChat
 Optional. The chat that changed the answer to the poll, if the voter is anonymous.
 
User::Ptr user
 Optional. The user that changed the answer to the poll, if the voter isn't anonymous.
 
std::vector< std::int32_t > optionIds
 0-based identifiers of chosen answer options.
 

Detailed Description

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

Definition at line 19 of file PollAnswer.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 22 of file PollAnswer.h.

Member Data Documentation

◆ optionIds

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

0-based identifiers of chosen answer options.

May be empty if the vote was retracted.

Definition at line 44 of file PollAnswer.h.

◆ pollId

std::string TgBot::PollAnswer::pollId

Unique poll identifier.

Definition at line 27 of file PollAnswer.h.

◆ user

User::Ptr TgBot::PollAnswer::user

Optional. The user that changed the answer to the poll, if the voter isn't anonymous.

Definition at line 37 of file PollAnswer.h.

◆ voterChat

Chat::Ptr TgBot::PollAnswer::voterChat

Optional. The chat that changed the answer to the poll, if the voter is anonymous.

Definition at line 32 of file PollAnswer.h.


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