tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::InlineKeyboardMarkup Struct Reference

This object represents an inline keyboard that appears right next to the message it belongs to. https://core.telegram.org/bots/api#inlinekeyboardmarkup. More...

#include <InlineKeyboardMarkup.hpp>

Inheritance diagram for tgbotxx::InlineKeyboardMarkup:
tgbotxx::IReplyMarkup

Public Member Functions

 InlineKeyboardMarkup ()=default
 
 InlineKeyboardMarkup (const nl::json &json)
 
virtual ~InlineKeyboardMarkup ()=default
 
nl::json toJson () const override
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON. More...
 

Public Attributes

std::vector< std::vector< Ptr< InlineKeyboardButton > > > inlineKeyboard
 Array of button rows, each represented by an Array of InlineKeyboardButton objects. More...
 

Detailed Description

This object represents an inline keyboard that appears right next to the message it belongs to. https://core.telegram.org/bots/api#inlinekeyboardmarkup.

Definition at line 9 of file InlineKeyboardMarkup.hpp.

Constructor & Destructor Documentation

◆ InlineKeyboardMarkup() [1/2]

tgbotxx::InlineKeyboardMarkup::InlineKeyboardMarkup ( )
default

◆ InlineKeyboardMarkup() [2/2]

tgbotxx::InlineKeyboardMarkup::InlineKeyboardMarkup ( const nl::json &  json)
inlineexplicit

Definition at line 11 of file InlineKeyboardMarkup.hpp.

◆ ~InlineKeyboardMarkup()

virtual tgbotxx::InlineKeyboardMarkup::~InlineKeyboardMarkup ( )
virtualdefault

Member Function Documentation

◆ fromJson()

void tgbotxx::InlineKeyboardMarkup::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Implements tgbotxx::IReplyMarkup.

Definition at line 28 of file InlineKeyboardMarkup.hpp.

◆ toJson()

nl::json tgbotxx::InlineKeyboardMarkup::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Implements tgbotxx::IReplyMarkup.

Definition at line 21 of file InlineKeyboardMarkup.hpp.

Member Data Documentation

◆ inlineKeyboard

std::vector<std::vector<Ptr<InlineKeyboardButton> > > tgbotxx::InlineKeyboardMarkup::inlineKeyboard

Array of button rows, each represented by an Array of InlineKeyboardButton objects.

Definition at line 17 of file InlineKeyboardMarkup.hpp.


The documentation for this struct was generated from the following file: