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

Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InlineQueryResultVoice>

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 voiceUrl { }
 A valid URL for the voice recording.
std::string title { }
 Recording 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::optional< std::int32_t > voiceDuration { }
 Optional. Recording duration in seconds.
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 recording.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.

Definition at line 5907 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 5908 of file Types.h.

Member Data Documentation

◆ caption

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

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

Definition at line 5935 of file Types.h.

◆ captionEntities

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

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

Definition at line 5947 of file Types.h.

◆ id

std::string TgBot::InlineQueryResultVoice::id { }

Unique identifier for this result, 1-64 bytes.

Definition at line 5920 of file Types.h.

◆ inputMessageContent

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

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

Definition at line 5962 of file Types.h.

◆ parseMode

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

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

Definition at line 5941 of file Types.h.

◆ replyMarkup

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

Optional. Inline keyboard attached to the message.

Definition at line 5957 of file Types.h.

◆ title

std::string TgBot::InlineQueryResultVoice::title { }

Recording title.

Definition at line 5930 of file Types.h.

◆ TYPE

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

Definition at line 5910 of file Types.h.

◆ type

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

Type of the result, must be voice.

Definition at line 5915 of file Types.h.

◆ voiceDuration

std::optional<std::int32_t> TgBot::InlineQueryResultVoice::voiceDuration { }

Optional. Recording duration in seconds.

Definition at line 5952 of file Types.h.

◆ voiceUrl

std::string TgBot::InlineQueryResultVoice::voiceUrl { }

A valid URL for the voice recording.

Definition at line 5925 of file Types.h.


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