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 <memory>
10#include <string>
11#include <vector>
12
13namespace TgBot {
14
24
25public:
26 static const std::string TYPE;
27
28 typedef std::shared_ptr<InlineQueryResultAudio> Ptr;
29
31 this->type = TYPE;
32 }
33
37 std::string audioUrl;
38
42 std::string title;
43
47 std::string caption;
48
54 std::string parseMode;
55
59 std::vector<MessageEntity::Ptr> captionEntities;
60
64 std::string performer;
65
69 std::int32_t audioDuration;
70
75};
76}
77
78#endif //TGBOT_INLINEQUERYRESULTAUDIO_H
Represents a link to an MP3 audio file.
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.
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 object represents one result of an inline query.
std::string type
Type of the result.
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:40