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

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

#include <MenuButtonWebApp.h>

Inheritance diagram for TgBot::MenuButtonWebApp:
TgBot::MenuButton

Public Types

typedef std::shared_ptr< MenuButtonWebAppPtr
 
- Public Types inherited from TgBot::MenuButton
typedef std::shared_ptr< MenuButtonPtr
 

Public Member Functions

 MenuButtonWebApp ()
 
- Public Member Functions inherited from TgBot::MenuButton
 MenuButton ()
 
virtual ~MenuButton ()
 

Public Attributes

std::string text
 Text on the button.
 
WebAppInfo::Ptr 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 Api::answerWebAppQuery.
 
- Public Attributes inherited from TgBot::MenuButton
std::string type
 Type of the button.
 

Static Public Attributes

static const std::string TYPE
 

Detailed Description

Represents a menu button, which launches a Web App.

Definition at line 17 of file MenuButtonWebApp.h.

Member Typedef Documentation

◆ Ptr

Definition at line 21 of file MenuButtonWebApp.h.

Constructor & Destructor Documentation

◆ MenuButtonWebApp()

TgBot::MenuButtonWebApp::MenuButtonWebApp ( )
inline

Definition at line 23 of file MenuButtonWebApp.h.

Member Data Documentation

◆ text

std::string TgBot::MenuButtonWebApp::text

Text on the button.

Definition at line 30 of file MenuButtonWebApp.h.

◆ TYPE

const std::string TgBot::MenuButtonWebApp::TYPE
static

Definition at line 19 of file MenuButtonWebApp.h.

◆ webApp

WebAppInfo::Ptr 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 Api::answerWebAppQuery.

Definition at line 36 of file MenuButtonWebApp.h.


The documentation for this class was generated from the following file: