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

This object contains information about one answer option in a poll. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<PollOption>

Public Attributes

std::string persistentId { }
 Unique identifier of the option, persistent on option addition and deletion.
std::string text { }
 Option text, 1-100 characters.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities { }
 Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts.
std::shared_ptr< PollMediamedia { }
 Optional. Media added to the poll option.
std::int32_t voterCount { }
 Number of users who voted for this option; may be 0 if unknown.
std::shared_ptr< UseraddedByUser { }
 Optional. User who added the option; omitted if the option wasn't added by a user after poll creation.
std::shared_ptr< ChataddedByChat { }
 Optional. Chat that added the option; omitted if the option wasn't added by a chat after poll creation.
std::optional< std::int32_t > additionDate { }
 Optional. Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll.

Detailed Description

This object contains information about one answer option in a poll.

Definition at line 11006 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 11007 of file Types.h.

Member Data Documentation

◆ addedByChat

std::shared_ptr<Chat> TgBot::PollOption::addedByChat { }

Optional. Chat that added the option; omitted if the option wasn't added by a chat after poll creation.

Definition at line 11045 of file Types.h.

◆ addedByUser

std::shared_ptr<User> TgBot::PollOption::addedByUser { }

Optional. User who added the option; omitted if the option wasn't added by a user after poll creation.

Definition at line 11039 of file Types.h.

◆ additionDate

std::optional<std::int32_t> TgBot::PollOption::additionDate { }

Optional. Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll.

Definition at line 11051 of file Types.h.

◆ media

std::shared_ptr<PollMedia> TgBot::PollOption::media { }

Optional. Media added to the poll option.

Definition at line 11028 of file Types.h.

◆ persistentId

std::string TgBot::PollOption::persistentId { }

Unique identifier of the option, persistent on option addition and deletion.

Definition at line 11012 of file Types.h.

◆ text

std::string TgBot::PollOption::text { }

Option text, 1-100 characters.

Definition at line 11017 of file Types.h.

◆ textEntities

std::optional<std::vector<std::shared_ptr<MessageEntity> > > TgBot::PollOption::textEntities { }

Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts.

Definition at line 11023 of file Types.h.

◆ voterCount

std::int32_t TgBot::PollOption::voterCount { }

Number of users who voted for this option; may be 0 if unknown.

Definition at line 11033 of file Types.h.


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