From d03eda27cdbe75470068d7513ecf510d8d342cf5 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 15 Jan 2017 02:46:48 +0300 Subject: Docs --- docs/class_tg_bot_1_1_keyboard_button.html | 195 +++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 docs/class_tg_bot_1_1_keyboard_button.html (limited to 'docs/class_tg_bot_1_1_keyboard_button.html') diff --git a/docs/class_tg_bot_1_1_keyboard_button.html b/docs/class_tg_bot_1_1_keyboard_button.html new file mode 100644 index 0000000..a28b7e9 --- /dev/null +++ b/docs/class_tg_bot_1_1_keyboard_button.html @@ -0,0 +1,195 @@ + + + + + + + +tgbot-cpp: TgBot::KeyboardButton Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::KeyboardButton Class Reference
+
+
+ +

#include <KeyboardButton.h>

+ + + + +

+Public Types

typedef std::shared_ptr< KeyboardButtonPtr
 
+ + + + + + + +

+Public Attributes

std::string text
 
bool requestContact = false
 
bool requestLocation = false
 
+

Detailed Description

+

This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields are mutually exclusive.

+ +

Definition at line 19 of file KeyboardButton.h.

+

Member Typedef Documentation

+ +

◆ Ptr

+ +
+
+ + + + +
typedef std::shared_ptr<KeyboardButton> TgBot::KeyboardButton::Ptr
+
+ +

Definition at line 22 of file KeyboardButton.h.

+ +
+
+

Member Data Documentation

+ +

◆ requestContact

+ +
+
+ + + + +
bool TgBot::KeyboardButton::requestContact = false
+
+

Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only

+ +

Definition at line 34 of file KeyboardButton.h.

+ +
+
+ +

◆ requestLocation

+ +
+
+ + + + +
bool TgBot::KeyboardButton::requestLocation = false
+
+

Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only.

+ +

Definition at line 39 of file KeyboardButton.h.

+ +
+
+ +

◆ text

+ +
+
+ + + + +
std::string TgBot::KeyboardButton::text
+
+

Text of the button. If none of the optional fields are used, it will be sent to the bot as a message when the button is pressed

+ +

Definition at line 28 of file KeyboardButton.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.3