tgbot-cpp
InlineQueryResultAudio.h
Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 27/12/16
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTAUDIO_H
6 #define TGBOT_INLINEQUERYRESULTAUDIO_H
7 
8 #include <string>
9 #include <memory>
10 
12 
13 namespace TgBot {
14 
21 public:
22  static const std::string TYPE;
23 
24  typedef std::shared_ptr<InlineQueryResultAudio> Ptr;
25 
27  this->type = TYPE;
28  this->audioDuration = 0;
29  }
30 
34  std::string audioUrl;
35 
39  std::string performer;
40 
44  int32_t audioDuration;
45 };
46 }
47 
48 #endif //TGBOT_INLINEQUERYRESULTAUDIO_H
std::shared_ptr< InlineQueryResultAudio > Ptr
std::string type
Type of the result.
Definition: Api.h:49
std::string audioUrl
A valid URL for the audio file.
int32_t audioDuration
Optional. Audio duration in seconds.
This abstract class is base of all inline query results.
std::string performer
Optional. Performer.
Represents a link to an mp3 audio file.