Represents a menu button, which launches a Web App.
More...
#include <Types.h>
|
| std::string | type { TYPE } |
| | Type of the button, must be web_app.
|
| std::string | text { } |
| | Text on the button.
|
| std::shared_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. Alternatively, a t.me link to a Web App of the bot can be specified in the object instead of the Web App's URL, in which case the Web App will be opened as if the user pressed the link.
|
Represents a menu button, which launches a Web App.
Definition at line 8880 of file Types.h.
◆ Ptr
◆ text
| std::string TgBot::MenuButtonWebApp::text { } |
Text on the button.
Definition at line 8893 of file Types.h.
◆ TYPE
| TGBOT_API const std::string TgBot::MenuButtonWebApp::TYPE |
|
static |
◆ type
| std::string TgBot::MenuButtonWebApp::type { TYPE } |
Type of the button, must be web_app.
Definition at line 8888 of file Types.h.
◆ webApp
| std::shared_ptr<WebAppInfo> TgBot::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. Alternatively, a t.me link to a Web App of the bot can be specified in the object instead of the Web App's URL, in which case the Web App will be opened as if the user pressed the link.
Definition at line 8902 of file Types.h.
The documentation for this struct was generated from the following file: