yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Public Member Functions | Private Attributes | List of all members
yatbcpp::KeyboardButton Class Reference

#include "KeyboardButton.h"

Public Member Functions

 KeyboardButton (std::string text)
 
 KeyboardButton (const KeyboardButton &KeyboardButton)
 
void setRequest_contact (const std::optional< bool > &request_contact)
 
void setRequest_location (const std::optional< bool > &request_location)
 
const std::string & getText () const
 
const std::optional< bool > & getRequest_contact () const
 
const std::optional< bool > & getRequest_location () const
 

Private Attributes

std::string text
 
std::optional< bool > request_contact
 
std::optional< bool > request_location
 

Detailed Description

See also https://core.telegram.org/bots/api#keyboardbutton

Definition at line 9 of file KeyboardButton.h.

Constructor & Destructor Documentation

◆ KeyboardButton() [1/2]

KeyboardButton::KeyboardButton ( std::string  text)

Definition at line 12 of file KeyboardButton.cc.

◆ KeyboardButton() [2/2]

KeyboardButton::KeyboardButton ( const KeyboardButton KeyboardButton)

Definition at line 18 of file KeyboardButton.cc.

Member Function Documentation

◆ getRequest_contact()

const optional< bool > & KeyboardButton::getRequest_contact ( ) const

Definition at line 46 of file KeyboardButton.cc.

◆ getRequest_location()

const optional< bool > & KeyboardButton::getRequest_location ( ) const

Definition at line 50 of file KeyboardButton.cc.

◆ getText()

const string & KeyboardButton::getText ( ) const

Definition at line 42 of file KeyboardButton.cc.

◆ setRequest_contact()

void KeyboardButton::setRequest_contact ( const std::optional< bool > &  request_contact)

Definition at line 30 of file KeyboardButton.cc.

◆ setRequest_location()

void KeyboardButton::setRequest_location ( const std::optional< bool > &  request_location)

Definition at line 34 of file KeyboardButton.cc.

Member Data Documentation

◆ request_contact

std::optional<bool> yatbcpp::KeyboardButton::request_contact
private

Definition at line 28 of file KeyboardButton.h.

◆ request_location

std::optional<bool> yatbcpp::KeyboardButton::request_location
private

Definition at line 29 of file KeyboardButton.h.

◆ text

std::string yatbcpp::KeyboardButton::text
private

Definition at line 27 of file KeyboardButton.h.


The documentation for this class was generated from the following files: