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

Arguments for Api::setChatMenuButton. More...

#include <Types.h>

Public Attributes

std::variant< std::int64_t, std::string > chatId = { }
 Unique identifier for the target private chat. If not specified, the bot's default menu button will be changed.
std::shared_ptr< MenuButton > menuButton = nullptr
 A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault.

Detailed Description

Arguments for Api::setChatMenuButton.

Definition at line 20454 of file Types.h.

Member Data Documentation

◆ chatId

std::variant<std::int64_t, std::string> TgBot::SetChatMenuButtonArgs::chatId = { }

Unique identifier for the target private chat. If not specified, the bot's default menu button will be changed.

Definition at line 20459 of file Types.h.

◆ menuButton

std::shared_ptr<MenuButton> TgBot::SetChatMenuButtonArgs::menuButton = nullptr

A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault.

Definition at line 20465 of file Types.h.


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