tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::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. More...

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResultCachedVoice:
tgbotxx::InlineQueryResult

Public Member Functions

 InlineQueryResultCachedVoice ()
 
 InlineQueryResultCachedVoice (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 voiceFileId
 A valid file identifier for the voice message. More...
 
std::string title
 Voice message title. More...
 
std::string description
 Optional. Short description of the result. More...
 
std::string caption
 Optional. Caption of the voice to be sent, 0-1024 characters after entities parsing. More...
 
std::string parseMode
 Optional. Mode for parsing entities in the voice 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 voice. 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 a voice message stored on the Telegram servers. By default, this voice message 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 1202 of file InlineQueryResult.hpp.

Constructor & Destructor Documentation

◆ InlineQueryResultCachedVoice() [1/2]

tgbotxx::InlineQueryResultCachedVoice::InlineQueryResultCachedVoice ( )
inline

Definition at line 1203 of file InlineQueryResult.hpp.

◆ InlineQueryResultCachedVoice() [2/2]

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

Definition at line 1206 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 1244 of file InlineQueryResult.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 1232 of file InlineQueryResult.hpp.

Member Data Documentation

◆ caption

std::string tgbotxx::InlineQueryResultCachedVoice::caption

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

Definition at line 1220 of file InlineQueryResult.hpp.

◆ captionEntities

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

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

Definition at line 1226 of file InlineQueryResult.hpp.

◆ description

std::string tgbotxx::InlineQueryResultCachedVoice::description

Optional. Short description of the result.

Definition at line 1217 of file InlineQueryResult.hpp.

◆ inputMessageContent

Ptr<InputMessageContent> tgbotxx::InlineQueryResultCachedVoice::inputMessageContent

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

Definition at line 1229 of file InlineQueryResult.hpp.

◆ parseMode

std::string tgbotxx::InlineQueryResultCachedVoice::parseMode

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

Definition at line 1223 of file InlineQueryResult.hpp.

◆ title

std::string tgbotxx::InlineQueryResultCachedVoice::title

Voice message title.

Definition at line 1214 of file InlineQueryResult.hpp.

◆ voiceFileId

std::string tgbotxx::InlineQueryResultCachedVoice::voiceFileId

A valid file identifier for the voice message.

Definition at line 1211 of file InlineQueryResult.hpp.


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