yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
InlineQueryResultCachedAudio.h
Go to the documentation of this file.
1 #ifndef YATBCPP_INLINEQUERYRESULTCACHEDAUDIO_H
2 #define YATBCPP_INLINEQUERYRESULTCACHEDAUDIO_H
3 
4 #include <string>
5 #include <optional>
6 #include "InlineQueryResult.h"
7 
8 namespace yatbcpp{
10  public:
11  InlineQueryResultCachedAudio(std::string id,std::string audio_file_id);
12 
14 
15  Json::Value toJson();
16 
17  const std::string &getAudio_file_id() const;
18 
19  const std::optional<std::string> &getCaption() const;
20 
21  private:
22  std::string audio_file_id;
23  std::optional<std::string> caption;
24  };
25 }
26 
27 #endif //YATBCPP_INLINEQUERYRESULTCACHEDAUDIO_H
InlineQueryResultCachedAudio(std::string id, std::string audio_file_id)
Definition: Bot.h:27
const std::optional< std::string > & getCaption() const