tgbot-cpp
Loading...
Searching...
No Matches
MenuButtonWebApp.h
Go to the documentation of this file.
1
#ifndef TGBOT_MENUBUTTONWEBAPP_H
2
#define TGBOT_MENUBUTTONWEBAPP_H
3
4
#include "
tgbot/types/MenuButton.h
"
5
#include "
tgbot/types/WebAppInfo.h
"
6
7
#include <memory>
8
#include <string>
9
10
namespace
TgBot
{
11
17
class
MenuButtonWebApp
:
public
MenuButton
{
18
public
:
19
static
const
std::string
TYPE
;
20
21
typedef
std::shared_ptr<MenuButtonWebApp>
Ptr
;
22
23
MenuButtonWebApp
() {
24
this->
type
=
TYPE
;
25
}
26
30
std::string
text
;
31
36
WebAppInfo::Ptr
webApp
;
37
};
38
}
39
40
#endif
//TGBOT_MENUBUTTONWEBAPP_H
MenuButton.h
WebAppInfo.h
TgBot::MenuButton
This abstract class is base of all bot menu buttons.
Definition
MenuButton.h:19
TgBot::MenuButton::type
std::string type
Type of the button.
Definition
MenuButton.h:30
TgBot::MenuButtonWebApp
Represents a menu button, which launches a Web App.
Definition
MenuButtonWebApp.h:17
TgBot::MenuButtonWebApp::MenuButtonWebApp
MenuButtonWebApp()
Definition
MenuButtonWebApp.h:23
TgBot::MenuButtonWebApp::TYPE
static const std::string TYPE
Definition
MenuButtonWebApp.h:19
TgBot::MenuButtonWebApp::text
std::string text
Text on the button.
Definition
MenuButtonWebApp.h:30
TgBot::MenuButtonWebApp::Ptr
std::shared_ptr< MenuButtonWebApp > Ptr
Definition
MenuButtonWebApp.h:21
TgBot::MenuButtonWebApp::webApp
WebAppInfo::Ptr webApp
Description of the Web App that will be launched when the user presses the button....
Definition
MenuButtonWebApp.h:36
TgBot::WebAppInfo::Ptr
std::shared_ptr< WebAppInfo > Ptr
Definition
WebAppInfo.h:19
TgBot
Definition
Api.h:40
include
tgbot
types
MenuButtonWebApp.h
Generated on Tue Jun 11 2024 00:46:35 for tgbot-cpp by
1.11.0