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

This abstract class is base of all bot menu buttons. More...

#include <MenuButton.h>

Inheritance diagram for TgBot::MenuButton:
TgBot::MenuButtonCommands TgBot::MenuButtonDefault TgBot::MenuButtonWebApp

Public Types

typedef std::shared_ptr< MenuButtonPtr
 

Public Member Functions

 MenuButton ()
 
virtual ~MenuButton ()
 

Public Attributes

std::string type
 Type of the button.
 

Detailed Description

This abstract class is base of all bot menu buttons.

This object describes the bot's menu button in a private chat. If a menu button other than MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands.

Definition at line 19 of file MenuButton.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<MenuButton> TgBot::MenuButton::Ptr

Definition at line 21 of file MenuButton.h.

Constructor & Destructor Documentation

◆ MenuButton()

TgBot::MenuButton::MenuButton ( )
inline

Definition at line 23 of file MenuButton.h.

◆ ~MenuButton()

virtual TgBot::MenuButton::~MenuButton ( )
inlinevirtual

Definition at line 25 of file MenuButton.h.

Member Data Documentation

◆ type

std::string TgBot::MenuButton::type

Type of the button.

Definition at line 30 of file MenuButton.h.


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