1 #ifndef CPPGRAM_KEYBOARD_BUTTON_HPP 2 #define CPPGRAM_KEYBOARD_BUTTON_HPP 45 , button_type( button_type )
55 : text( json_button[
"text"].asString() )
57 if ( !json_button[
"callback_data"].isNull() )
59 data = json_button[
"callback_data"].asString();
62 else if ( !json_button[
"url"].isNull() )
64 data = json_button[
"url"].asString();
67 else if ( !json_button[
"switch_inline_query"].isNull() )
69 data = json_button[
"switch_inline_query"].asString();
EButton
Type of the inlineKeyboardButton to add in the reply markup.
Definition: enums.hpp:80
main namespace for Cppgram