yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
ReplyKeyboardMarkup.cc
Go to the documentation of this file.
1 #include <string>
2 #include <optional>
4 
5 using namespace yatbcpp;
6 using namespace std;
7 
9 // Constructor Section //
11 
12 ReplyKeyboardMarkup::ReplyKeyboardMarkup(std::vector<std::vector<KeyboardButton>> keyboard):
13  keyboard(keyboard)
14 {
15 
16 }
17 
19  keyboard(ReplyKeyboardMarkup.keyboard)
20 {
21  resize_keyboard = ReplyKeyboardMarkup.resize_keyboard;
22  one_time_keyboard = ReplyKeyboardMarkup.one_time_keyboard;
23  selective = ReplyKeyboardMarkup.selective;
24 }
25 
26 
28 // Setter Section //
30 
33 }
34 
37 }
38 
39 void ReplyKeyboardMarkup::setSelective(const optional<bool> &selective) {
41 }
42 
44 // Getter Section //
46 
47 const vector<vector<KeyboardButton>> &ReplyKeyboardMarkup::getKeyboard() const {
48  return keyboard;
49 }
50 
51 const optional<bool> &ReplyKeyboardMarkup::getResize_keyboard() const {
52  return resize_keyboard;
53 }
54 
55 const optional<bool> &ReplyKeyboardMarkup::getOne_time_keyboard() const {
56  return one_time_keyboard;
57 }
58 
59 const optional<bool> &ReplyKeyboardMarkup::getSelective() const {
60  return selective;
61 }
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