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
6
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
18public:
19 static const std::string TYPE;
20
21 typedef std::shared_ptr<MenuButtonWebApp> Ptr;
22
24 this->type = TYPE;
25 }
26
30 std::string text;
31
37};
38}
39
40#endif //TGBOT_MENUBUTTONWEBAPP_H
This abstract class is base of all bot menu buttons.
Definition MenuButton.h:19
std::string type
Type of the button.
Definition MenuButton.h:30
Represents a menu button, which launches a Web App.
static const std::string TYPE
std::string text
Text on the button.
std::shared_ptr< MenuButtonWebApp > Ptr
WebAppInfo::Ptr webApp
Description of the Web App that will be launched when the user presses the button....
std::shared_ptr< WebAppInfo > Ptr
Definition WebAppInfo.h:19
Definition Api.h:40