|
tgbotxx 1.2.9.2
Telegram Bot C++ Library
|
Represents a menu button, which launches a Web App. https://core.telegram.org/bots/webapps https://core.telegram.org/bots/api#menubuttonwebapp. More...
#include <MenuButton.hpp>
Public Member Functions | |
| MenuButtonWebApp () | |
| MenuButtonWebApp (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 |
Public Attributes | |
| std::string | text |
| Text on the button. | |
| Ptr< WebAppInfo > | webApp |
| Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. https://core.telegram.org/bots/api#answerwebappquery. | |
Public Attributes inherited from tgbotxx::MenuButton | |
| std::string | type |
| Type of the button. | |
Represents a menu button, which launches a Web App. https://core.telegram.org/bots/webapps https://core.telegram.org/bots/api#menubuttonwebapp.
Definition at line 59 of file MenuButton.hpp.
|
inline |
Definition at line 60 of file MenuButton.hpp.
|
inlineexplicit |
Definition at line 63 of file MenuButton.hpp.
Deserializes this object from JSON.
Reimplemented from tgbotxx::MenuButton.
Definition at line 81 of file MenuButton.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::MenuButton.
Definition at line 74 of file MenuButton.hpp.
| std::string tgbotxx::MenuButtonWebApp::text |
Text on the button.
Definition at line 68 of file MenuButton.hpp.
| Ptr<WebAppInfo> tgbotxx::MenuButtonWebApp::webApp |
Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. https://core.telegram.org/bots/api#answerwebappquery.
Definition at line 72 of file MenuButton.hpp.