|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object describes the bot's menu button in a private chat. It should be one of: More...
#include <MenuButton.hpp>
Public Member Functions | |
| MenuButton ()=default | |
| MenuButton (const nl::json &json) | |
| virtual | ~MenuButton ()=default |
| virtual nl::json | toJson () const |
| Serializes this object to JSON. | |
| virtual void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::string | type |
| Type of the button. | |
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.
|
default |
|
inlineexplicit |
Definition at line 16 of file MenuButton.hpp.
|
virtualdefault |
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::MenuButtonWebApp.
Definition at line 33 of file MenuButton.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::MenuButtonWebApp.
Definition at line 26 of file MenuButton.hpp.
| std::string tgbotxx::MenuButton::type |
Type of the button.
Definition at line 22 of file MenuButton.hpp.