tgbotxx
1.1.6.9
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. More... | |
void | fromJson (const nl::json &json) override |
Deserializes this object from JSON. More... | |
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. More... | |
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. More... | |
Public Attributes inherited from tgbotxx::MenuButton | |
std::string | type |
Type of the button. More... | |
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 56 of file MenuButton.hpp.
|
inline |
Definition at line 57 of file MenuButton.hpp.
|
inlineexplicit |
Definition at line 60 of file MenuButton.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::MenuButton.
Definition at line 78 of file MenuButton.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::MenuButton.
Definition at line 71 of file MenuButton.hpp.
std::string tgbotxx::MenuButtonWebApp::text |
Text on the button.
Definition at line 65 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 69 of file MenuButton.hpp.