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

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

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InputPollOption>

Public Attributes

std::string text { }
 Option text, 1-100 characters.
std::optional< std::string > textParseMode { }
 Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > textEntities { }
 Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode.
std::shared_ptr< InputPollOptionMediamedia { }
 Optional. Media added to the poll option.

Detailed Description

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

Definition at line 7113 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 7114 of file Types.h.

Member Data Documentation

◆ media

std::shared_ptr<InputPollOptionMedia> TgBot::InputPollOption::media { }

Optional. Media added to the poll option.

Definition at line 7136 of file Types.h.

◆ text

std::string TgBot::InputPollOption::text { }

Option text, 1-100 characters.

Definition at line 7119 of file Types.h.

◆ textEntities

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

Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode.

Definition at line 7131 of file Types.h.

◆ textParseMode

std::optional<std::string> TgBot::InputPollOption::textParseMode { }

Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed.

Definition at line 7125 of file Types.h.


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