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

This object describes the bot's menu button in a private chat. It should be one of: More...

#include <MenuButton.hpp>

Inheritance diagram for tgbotxx::MenuButton:
tgbotxx::MenuButtonCommands tgbotxx::MenuButtonDefault tgbotxx::MenuButtonWebApp

Public Member Functions

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

Public Attributes

std::string type
 Type of the button. More...
 

Detailed Description

This object describes the bot's menu button in a private chat. It should be one of:

Definition at line 14 of file MenuButton.hpp.

Constructor & Destructor Documentation

◆ MenuButton() [1/2]

tgbotxx::MenuButton::MenuButton ( )
default

◆ MenuButton() [2/2]

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

Definition at line 16 of file MenuButton.hpp.

◆ ~MenuButton()

virtual tgbotxx::MenuButton::~MenuButton ( )
virtualdefault

Member Function Documentation

◆ fromJson()

virtual void tgbotxx::MenuButton::fromJson ( const nl::json &  json)
inlinevirtual

Deserializes this object from JSON.

Reimplemented in tgbotxx::MenuButtonWebApp.

Definition at line 33 of file MenuButton.hpp.

◆ toJson()

virtual nl::json tgbotxx::MenuButton::toJson ( ) const
inlinevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented in tgbotxx::MenuButtonWebApp.

Definition at line 26 of file MenuButton.hpp.

Member Data Documentation

◆ type

std::string tgbotxx::MenuButton::type

Type of the button.

Definition at line 22 of file MenuButton.hpp.


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