tgbot-cpp
InlineQueryResultVoice.h
Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 27/12/16
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTVOICE_H
6 #define TGBOT_INLINEQUERYRESULTVOICE_H
7 
8 namespace TgBot {
9 
16 public:
17  static const std::string TYPE;
18 
19  typedef std::shared_ptr<InlineQueryResultVoice> Ptr;
20 
22  this->type = TYPE;
23  this->voiceDuration = 0;
24  };
25 
29  std::string voiceUrl;
30 
34  int32_t voiceDuration;
35 };
36 }
37 
38 #endif //TGBOT_INLINEQUERYRESULTVOICE_H
std::string type
Type of the result.
std::string voiceUrl
A valid URL for the voice recording.
Definition: Api.h:47
std::shared_ptr< InlineQueryResultVoice > Ptr
This abstract class is base of all inline query results.
Represents link to a page containing an embedded video player or a video file.
int32_t voiceDuration
Optional. Recording duration in seconds.