22 typedef std::shared_ptr<Poll>
Ptr;
This object contains information about a poll.
std::int64_t closeDate
Optional. Point in time (Unix timestamp) when the poll will be automatically closed.
bool isAnonymous
True, if the poll is anonymous.
std::int32_t correctOptionId
Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode,...
std::vector< PollOption::Ptr > options
List of poll options.
bool isClosed
True, if the poll is closed.
std::string id
Unique poll identifier.
std::shared_ptr< Poll > Ptr
std::int32_t openPeriod
Optional. Amount of time in seconds the poll will be active after creation.
bool allowsMultipleAnswers
True, if the poll allows multiple answers.
std::string explanation
Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a qu...
std::string type
Poll type, currently can be “regular” or “quiz”
std::string question
Poll question, 1-255 characters.
std::vector< MessageEntity::Ptr > explanationEntities
Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation.
std::int32_t totalVoterCount
Total number of users that voted in the poll.