tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultAudio.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTAUDIO_H
2#define TGBOT_INLINEQUERYRESULTAUDIO_H
3
7
8#include <cstdint>
9#include <string>
10#include <memory>
11
12namespace TgBot {
13
22public:
23 static const std::string TYPE;
24
25 typedef std::shared_ptr<InlineQueryResultAudio> Ptr;
26
28 this->type = TYPE;
29 }
30
34 std::string audioUrl;
35
39 std::string title;
40
44 std::string caption;
45
50 std::string parseMode;
51
55 std::vector<MessageEntity::Ptr> captionEntities;
56
60 std::string performer;
61
65 std::int32_t audioDuration;
66
71};
72}
73
74#endif //TGBOT_INLINEQUERYRESULTAUDIO_H
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user....
std::vector< MessageEntity::Ptr > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::string audioUrl
A valid URL for the audio file.
std::shared_ptr< InlineQueryResultAudio > Ptr
std::int32_t audioDuration
Optional. Audio duration in seconds.
std::string parseMode
Optional. Mode for parsing entities in the audio caption. See https://core.telegram....
std::string caption
Optional. Caption, 0-1024 characters after entities parsing.
InputMessageContent::Ptr inputMessageContent
Optional. Content of the message to be sent instead of the audio.
std::string performer
Optional. Performer.
This abstract class is base of all inline query results.
std::string type
Type of the result.
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:39