tgbot-cpp
Loading...
Searching...
No Matches
TgBot::MenuButtonWebApp Struct Reference

Represents a menu button, which launches a Web App. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<MenuButtonWebApp>

Public Attributes

std::string type { TYPE }
 Type of the button, must be web_app.
std::string text { }
 Text on the button.
std::shared_ptr< WebAppInfowebApp { }
 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.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

Represents a menu button, which launches a Web App.

Definition at line 8880 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 8881 of file Types.h.

Member Data Documentation

◆ 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

Definition at line 8883 of file Types.h.

◆ 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: