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

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

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<PollAnswer>

Public Attributes

std::string pollId { }
 Unique poll identifier.
std::shared_ptr< Chat > voterChat { }
 Optional. The chat that changed the answer to the poll, if the voter is anonymous.
std::shared_ptr< User > 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. May be empty if the vote was retracted.
std::vector< std::string > optionPersistentIds { }
 Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.

Detailed Description

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

Definition at line 10001 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::PollAnswer::Ptr = std::shared_ptr<PollAnswer>

Definition at line 10002 of file Types.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 10019 of file Types.h.

◆ optionPersistentIds

std::vector<std::string> TgBot::PollAnswer::optionPersistentIds { }

Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.

Definition at line 10024 of file Types.h.

◆ pollId

std::string TgBot::PollAnswer::pollId { }

Unique poll identifier.

Definition at line 10007 of file Types.h.

◆ user

std::shared_ptr<User> TgBot::PollAnswer::user { }

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

Definition at line 10015 of file Types.h.

◆ voterChat

std::shared_ptr<Chat> TgBot::PollAnswer::voterChat { }

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

Definition at line 10011 of file Types.h.


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