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