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

Represents a link to an MP3 audio file. More...

#include <InlineQueryResultAudio.h>

Inheritance diagram for TgBot::InlineQueryResultAudio:
TgBot::InlineQueryResult

Public Types

typedef std::shared_ptr< InlineQueryResultAudioPtr
 
- Public Types inherited from TgBot::InlineQueryResult
typedef std::shared_ptr< InlineQueryResultPtr
 

Public Member Functions

 InlineQueryResultAudio ()
 
- Public Member Functions inherited from TgBot::InlineQueryResult
 InlineQueryResult ()
 
virtual ~InlineQueryResult ()
 

Public Attributes

std::string audioUrl
 A valid URL for the audio file.
 
std::string title
 Title.
 
std::string caption
 Optional. Caption, 0-1024 characters after entities parsing.
 
std::string parseMode
 Optional. Mode for parsing entities in the audio caption.
 
std::vector< MessageEntity::PtrcaptionEntities
 Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
 
std::string performer
 Optional. Performer.
 
std::int32_t audioDuration
 Optional. Audio duration in seconds.
 
InputMessageContent::Ptr inputMessageContent
 Optional. Content of the message to be sent instead of the audio.
 
- Public Attributes inherited from TgBot::InlineQueryResult
std::string type
 Type of the result.
 
std::string id
 Unique identifier for this result, 1-64 bytes.
 
InlineKeyboardMarkup::Ptr replyMarkup
 Optional. Inline keyboard attached to the message.
 

Static Public Attributes

static 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 inputMessageContent to send a message with the specified content instead of the audio.

Definition at line 23 of file InlineQueryResultAudio.h.

Member Typedef Documentation

◆ Ptr

Definition at line 28 of file InlineQueryResultAudio.h.

Constructor & Destructor Documentation

◆ InlineQueryResultAudio()

TgBot::InlineQueryResultAudio::InlineQueryResultAudio ( )
inline

Definition at line 30 of file InlineQueryResultAudio.h.

Member Data Documentation

◆ audioDuration

std::int32_t TgBot::InlineQueryResultAudio::audioDuration

Optional. Audio duration in seconds.

Definition at line 69 of file InlineQueryResultAudio.h.

◆ audioUrl

std::string TgBot::InlineQueryResultAudio::audioUrl

A valid URL for the audio file.

Definition at line 37 of file InlineQueryResultAudio.h.

◆ caption

std::string TgBot::InlineQueryResultAudio::caption

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

Definition at line 47 of file InlineQueryResultAudio.h.

◆ captionEntities

std::vector<MessageEntity::Ptr> TgBot::InlineQueryResultAudio::captionEntities

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

Definition at line 59 of file InlineQueryResultAudio.h.

◆ inputMessageContent

InputMessageContent::Ptr TgBot::InlineQueryResultAudio::inputMessageContent

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

Definition at line 74 of file InlineQueryResultAudio.h.

◆ parseMode

std::string TgBot::InlineQueryResultAudio::parseMode

Optional. Mode for parsing entities in the audio caption.

See formatting options for more details.

Definition at line 54 of file InlineQueryResultAudio.h.

◆ performer

std::string TgBot::InlineQueryResultAudio::performer

Optional. Performer.

Definition at line 64 of file InlineQueryResultAudio.h.

◆ title

std::string TgBot::InlineQueryResultAudio::title

Title.

Definition at line 42 of file InlineQueryResultAudio.h.

◆ TYPE

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

Definition at line 26 of file InlineQueryResultAudio.h.


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