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

Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InlineQueryResultCachedVoice>

Public Attributes

std::string type { TYPE }
 Type of the result, must be voice.
std::string id { }
 Unique identifier for this result, 1-64 bytes.
std::string voiceFileId { }
 A valid file identifier for the voice message.
std::string title { }
 Voice message title.
std::optional< std::string > caption { }
 Optional. Caption, 0-1024 characters after entities parsing.
std::optional< std::string > parseMode { }
 Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.
std::optional< std::vector< std::shared_ptr< MessageEntity > > > captionEntities { }
 Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
std::shared_ptr< InlineKeyboardMarkupreplyMarkup { }
 Optional. Inline keyboard attached to the message.
std::shared_ptr< InputMessageContentinputMessageContent { }
 Optional. Content of the message to be sent instead of the voice message.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.

Definition at line 5101 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 5102 of file Types.h.

Member Data Documentation

◆ caption

std::optional<std::string> TgBot::InlineQueryResultCachedVoice::caption { }

Optional. Caption, 0-1024 characters after entities parsing.

Definition at line 5129 of file Types.h.

◆ captionEntities

std::optional<std::vector<std::shared_ptr<MessageEntity> > > TgBot::InlineQueryResultCachedVoice::captionEntities { }

Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.

Definition at line 5141 of file Types.h.

◆ id

std::string TgBot::InlineQueryResultCachedVoice::id { }

Unique identifier for this result, 1-64 bytes.

Definition at line 5114 of file Types.h.

◆ inputMessageContent

std::shared_ptr<InputMessageContent> TgBot::InlineQueryResultCachedVoice::inputMessageContent { }

Optional. Content of the message to be sent instead of the voice message.

Definition at line 5151 of file Types.h.

◆ parseMode

std::optional<std::string> TgBot::InlineQueryResultCachedVoice::parseMode { }

Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.

Definition at line 5135 of file Types.h.

◆ replyMarkup

std::shared_ptr<InlineKeyboardMarkup> TgBot::InlineQueryResultCachedVoice::replyMarkup { }

Optional. Inline keyboard attached to the message.

Definition at line 5146 of file Types.h.

◆ title

std::string TgBot::InlineQueryResultCachedVoice::title { }

Voice message title.

Definition at line 5124 of file Types.h.

◆ TYPE

TGBOT_API const std::string TgBot::InlineQueryResultCachedVoice::TYPE
static

Definition at line 5104 of file Types.h.

◆ type

std::string TgBot::InlineQueryResultCachedVoice::type { TYPE }

Type of the result, must be voice.

Definition at line 5109 of file Types.h.

◆ voiceFileId

std::string TgBot::InlineQueryResultCachedVoice::voiceFileId { }

A valid file identifier for the voice message.

Definition at line 5119 of file Types.h.


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