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

Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InlineQueryResultAudio>

Public Attributes

std::string type { TYPE }
 Type of the result, must be audio.
std::string id { }
 Unique identifier for this result, 1-64 bytes.
std::string audioUrl { }
 A valid URL for the audio file.
std::string title { }
 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 audio 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::string > performer { }
 Optional. Performer.
std::optional< std::int32_t > audioDuration { }
 Optional. Audio 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 audio.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.

Definition at line 4585 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 4586 of file Types.h.

Member Data Documentation

◆ audioDuration

std::optional<std::int32_t> TgBot::InlineQueryResultAudio::audioDuration { }

Optional. Audio duration in seconds.

Definition at line 4635 of file Types.h.

◆ audioUrl

std::string TgBot::InlineQueryResultAudio::audioUrl { }

A valid URL for the audio file.

Definition at line 4603 of file Types.h.

◆ caption

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

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

Definition at line 4613 of file Types.h.

◆ captionEntities

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

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

Definition at line 4625 of file Types.h.

◆ id

std::string TgBot::InlineQueryResultAudio::id { }

Unique identifier for this result, 1-64 bytes.

Definition at line 4598 of file Types.h.

◆ inputMessageContent

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

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

Definition at line 4645 of file Types.h.

◆ parseMode

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

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

Definition at line 4619 of file Types.h.

◆ performer

std::optional<std::string> TgBot::InlineQueryResultAudio::performer { }

Optional. Performer.

Definition at line 4630 of file Types.h.

◆ replyMarkup

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

Optional. Inline keyboard attached to the message.

Definition at line 4640 of file Types.h.

◆ title

std::string TgBot::InlineQueryResultAudio::title { }

Title.

Definition at line 4608 of file Types.h.

◆ TYPE

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

Definition at line 4588 of file Types.h.

◆ type

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

Type of the result, must be audio.

Definition at line 4593 of file Types.h.


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