tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InlineQueryResultVoice Class 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 inputMessageContent to send a message with the specified content instead of the the voice message. More...

#include <InlineQueryResultVoice.h>

Inheritance diagram for TgBot::InlineQueryResultVoice:
TgBot::InlineQueryResult

Public Types

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

Public Member Functions

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

Public Attributes

std::string voiceUrl
 A valid URL for the voice recording.
 
std::string title
 Recording title.
 
std::string caption
 Optional. Caption, 0-1024 characters after entities parsing.
 
std::string parseMode
 Optional. Mode for parsing entities in the voice message caption. See https://core.telegram.org/bots/api#formatting-options for more details.
 
std::vector< MessageEntity::PtrcaptionEntities
 Optional. List of special entities that appear in the caption, which can be specified instead of parseMode.
 
std::int32_t voiceDuration
 Optional. Recording duration in seconds.
 
InputMessageContent::Ptr inputMessageContent
 Optional. Content of the message to be sent instead of the voice recording.
 
- 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 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 inputMessageContent to send a message with the specified content instead of the the voice message.

Definition at line 22 of file InlineQueryResultVoice.h.

Member Typedef Documentation

◆ Ptr

Definition at line 26 of file InlineQueryResultVoice.h.

Constructor & Destructor Documentation

◆ InlineQueryResultVoice()

TgBot::InlineQueryResultVoice::InlineQueryResultVoice ( )
inline

Definition at line 28 of file InlineQueryResultVoice.h.

Member Data Documentation

◆ caption

std::string TgBot::InlineQueryResultVoice::caption

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

Definition at line 45 of file InlineQueryResultVoice.h.

◆ captionEntities

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

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

Definition at line 56 of file InlineQueryResultVoice.h.

◆ inputMessageContent

InputMessageContent::Ptr TgBot::InlineQueryResultVoice::inputMessageContent

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

Definition at line 66 of file InlineQueryResultVoice.h.

◆ parseMode

std::string TgBot::InlineQueryResultVoice::parseMode

Optional. Mode for parsing entities in the voice message caption. See https://core.telegram.org/bots/api#formatting-options for more details.

Definition at line 51 of file InlineQueryResultVoice.h.

◆ title

std::string TgBot::InlineQueryResultVoice::title

Recording title.

Definition at line 40 of file InlineQueryResultVoice.h.

◆ TYPE

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

Definition at line 24 of file InlineQueryResultVoice.h.

◆ voiceDuration

std::int32_t TgBot::InlineQueryResultVoice::voiceDuration

Optional. Recording duration in seconds.

Definition at line 61 of file InlineQueryResultVoice.h.

◆ voiceUrl

std::string TgBot::InlineQueryResultVoice::voiceUrl

A valid URL for the voice recording.

Definition at line 35 of file InlineQueryResultVoice.h.


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