tgbot-cpp
Main Page
Modules
Namespaces
Classes
Files
File List
KeyboardButton.h
Go to the documentation of this file.
1
//
2
// Created by Konstantin Kukin on 26/12/16.
3
//
4
5
#ifndef TGBOT_CPP_KEYBOARDBUTTON_H
6
#define TGBOT_CPP_KEYBOARDBUTTON_H
7
8
#include <string>
9
#include <memory>
10
11
namespace
TgBot
{
12
21
class
KeyboardButton
{
22
23
public
:
24
typedef
std::shared_ptr<KeyboardButton>
Ptr
;
25
30
std::string
text
;
31
36
bool
requestContact
=
false
;
37
41
bool
requestLocation
=
false
;
42
};
43
44
}
45
46
#endif //TGBOT_CPP_KEYBOARDBUTTON_H
TgBot::KeyboardButton
This object represents one button of the reply keyboard.
Definition:
KeyboardButton.h:21
TgBot
Definition:
Api.h:49
TgBot::KeyboardButton::Ptr
std::shared_ptr< KeyboardButton > Ptr
Definition:
KeyboardButton.h:24
TgBot::KeyboardButton::requestContact
bool requestContact
Optional. If True, the user's phone number will be sent as a contact when the button is pressed...
Definition:
KeyboardButton.h:36
TgBot::KeyboardButton::requestLocation
bool requestLocation
Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only.
Definition:
KeyboardButton.h:41
TgBot::KeyboardButton::text
std::string text
Text of the button. If none of the optional fields are used, it will be sent to the bot as a message ...
Definition:
KeyboardButton.h:30
include
tgbot
types
KeyboardButton.h
Generated on Fri Jun 22 2018 22:14:16 for tgbot-cpp by
1.8.11