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

This object describes the bot's menu button in a private chat. It should be one of MenuButtonCommands MenuButtonWebApp MenuButtonDefault 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. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<MenuButton>

Public Attributes

std::variant< std::shared_ptr< MenuButtonCommands >, std::shared_ptr< MenuButtonWebApp >, std::shared_ptr< MenuButtonDefault > > value

Detailed Description

This object describes the bot's menu button in a private chat. It should be one of MenuButtonCommands MenuButtonWebApp MenuButtonDefault 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 8504 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::MenuButton::Ptr = std::shared_ptr<MenuButton>

Definition at line 8505 of file Types.h.

Member Data Documentation

◆ value

std::variant<std::shared_ptr<MenuButtonCommands>, std::shared_ptr<MenuButtonWebApp>, std::shared_ptr<MenuButtonDefault> > TgBot::MenuButton::value

Definition at line 8509 of file Types.h.


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