tgbotxx 1.2.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::MenuButtonDefault Struct Reference

Describes that no specific value for the menu button was set. https://core.telegram.org/bots/api#menubuttondefault. More...

#include <MenuButton.hpp>

Inheritance diagram for tgbotxx::MenuButtonDefault:
tgbotxx::MenuButton

Public Member Functions

 MenuButtonDefault ()
 
 MenuButtonDefault (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON.
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON.
 
- Public Member Functions inherited from tgbotxx::MenuButton
 MenuButton ()=default
 
 MenuButton (const nl::json &json)
 
virtual ~MenuButton ()=default
 

Additional Inherited Members

- Public Attributes inherited from tgbotxx::MenuButton
std::string type
 Type of the button.
 

Detailed Description

Describes that no specific value for the menu button was set. https://core.telegram.org/bots/api#menubuttondefault.

Definition at line 40 of file MenuButton.hpp.

Constructor & Destructor Documentation

◆ MenuButtonDefault() [1/2]

tgbotxx::MenuButtonDefault::MenuButtonDefault ( )
inline

Definition at line 41 of file MenuButton.hpp.

◆ MenuButtonDefault() [2/2]

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

Definition at line 44 of file MenuButton.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::MenuButton.

Definition at line 52 of file MenuButton.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::MenuButton.

Definition at line 47 of file MenuButton.hpp.


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