yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
ReplyKeyboardMarkup.h
Go to the documentation of this file.
1 //
2 // Created by norbert on 26.08.17.
3 //
4 
5 #ifndef YATBCPP_REPLYKEYBOARDMARKUP_H
6 #define YATBCPP_REPLYKEYBOARDMARKUP_H
7 
8 #include <string>
9 #include <optional>
10 #include <vector>
11 #include "KeyboardButton.h"
12 #include "ReplyMarkup.h"
13 
14 
15 namespace yatbcpp{
18  public:
19  ReplyKeyboardMarkup(std::vector<std::vector<KeyboardButton>> keyboard);
20 
22 
23  void setResize_keyboard(const std::optional<bool> &resize_keyboard);
24 
25  void setOne_time_keyboard(const std::optional<bool> &one_time_keyboard);
26 
27  void setSelective(const std::optional<bool> &selective);
28 
29  const std::vector<std::vector<KeyboardButton>> &getKeyboard() const;
30 
31  const std::optional<bool> &getResize_keyboard() const;
32 
33  const std::optional<bool> &getOne_time_keyboard() const;
34 
35  const std::optional<bool> &getSelective() const;
36 
37 
38  private:
39  std::vector<std::vector<KeyboardButton>> keyboard;
40  std::optional<bool> resize_keyboard;
41  std::optional<bool> one_time_keyboard;
42  std::optional<bool> selective;
43 
44  };
45 
46 }
47 
48 #endif //YATBCPP_REPLYKEYBOARDMARKUP_H
const std::optional< bool > & getOne_time_keyboard() const
void setResize_keyboard(const std::optional< bool > &resize_keyboard)
const std::vector< std::vector< KeyboardButton > > & getKeyboard() const
std::optional< bool > selective
void setSelective(const std::optional< bool > &selective)
std::optional< bool > resize_keyboard
const std::optional< bool > & getResize_keyboard() const
Definition: Bot.h:27
std::optional< bool > one_time_keyboard
ReplyKeyboardMarkup(std::vector< std::vector< KeyboardButton >> keyboard)
void setOne_time_keyboard(const std::optional< bool > &one_time_keyboard)
std::vector< std::vector< KeyboardButton > > keyboard
const std::optional< bool > & getSelective() const