tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::InlineQueryResultCachedAudio Struct Reference

Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. More...

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResultCachedAudio:
tgbotxx::InlineQueryResult

Public Member Functions

 InlineQueryResultCachedAudio ()
 
 InlineQueryResultCachedAudio (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::InlineQueryResult
 InlineQueryResult ()=default
 
 InlineQueryResult (const nl::json &json)
 

Public Attributes

std::string audioFileId
 A valid file identifier for the audio file. More...
 
std::string caption
 Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing. More...
 
std::string parseMode
 Optional. Mode for parsing entities in the audio caption. See formatting options for more details. More...
 
std::vector< Ptr< MessageEntity > > captionEntities
 Optional. List of special entities that appear in the voice caption, which can be specified instead of parseMode. More...
 
Ptr< InputMessageContentinputMessageContent
 Optional. Content of the message to be sent instead of the audio. More...
 
- Public Attributes inherited from tgbotxx::InlineQueryResult
std::string type
 Type of the result. More...
 
std::string id
 Unique identifier for this result, 1-64 bytes. More...
 
Ptr< InlineKeyboardMarkupreplyMarkup
 Optional. Inline keyboard attached to the message. More...
 

Detailed Description

Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user.

Note
This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Definition at line 1260 of file InlineQueryResult.hpp.

Constructor & Destructor Documentation

◆ InlineQueryResultCachedAudio() [1/2]

tgbotxx::InlineQueryResultCachedAudio::InlineQueryResultCachedAudio ( )
inline

Definition at line 1261 of file InlineQueryResult.hpp.

◆ InlineQueryResultCachedAudio() [2/2]

tgbotxx::InlineQueryResultCachedAudio::InlineQueryResultCachedAudio ( const nl::json &  json)
inlineexplicit

Definition at line 1264 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InlineQueryResultCachedAudio::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 1294 of file InlineQueryResult.hpp.

◆ toJson()

nl::json tgbotxx::InlineQueryResultCachedAudio::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 1284 of file InlineQueryResult.hpp.

Member Data Documentation

◆ audioFileId

std::string tgbotxx::InlineQueryResultCachedAudio::audioFileId

A valid file identifier for the audio file.

Definition at line 1269 of file InlineQueryResult.hpp.

◆ caption

std::string tgbotxx::InlineQueryResultCachedAudio::caption

Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing.

Definition at line 1272 of file InlineQueryResult.hpp.

◆ captionEntities

std::vector<Ptr<MessageEntity> > tgbotxx::InlineQueryResultCachedAudio::captionEntities

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

Definition at line 1278 of file InlineQueryResult.hpp.

◆ inputMessageContent

Ptr<InputMessageContent> tgbotxx::InlineQueryResultCachedAudio::inputMessageContent

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

Definition at line 1281 of file InlineQueryResult.hpp.

◆ parseMode

std::string tgbotxx::InlineQueryResultCachedAudio::parseMode

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

Definition at line 1275 of file InlineQueryResult.hpp.


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