yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
KeyboardButton.cc
Go to the documentation of this file.
1 #include <string>
2 #include <optional>
3 #include "types/KeyboardButton.h"
4 
5 using namespace yatbcpp;
6 using namespace std;
7 
9 // Constructor Section //
11 
13  text(text)
14 {
15 
16 }
17 
19  text(KeyboardButton.text)
20 {
21  request_contact = KeyboardButton.request_contact;
22  request_location = KeyboardButton.request_location;
23 }
24 
25 
27 // Setter Section //
29 
32 }
33 
36 }
37 
39 // Getter Section //
41 
42 const string &KeyboardButton::getText() const {
43  return text;
44 }
45 
46 const optional<bool> &KeyboardButton::getRequest_contact() const {
47  return request_contact;
48 }
49 
50 const optional<bool> &KeyboardButton::getRequest_location() const {
51  return request_location;
52 }
std::optional< bool > request_contact
void setRequest_contact(const std::optional< bool > &request_contact)
KeyboardButton(std::string text)
std::optional< bool > request_location
Definition: Bot.h:27
const std::optional< bool > & getRequest_location() const
const std::optional< bool > & getRequest_contact() const
void setRequest_location(const std::optional< bool > &request_location)
const std::string & getText() const