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

Arguments for Api::setMyCommands. More...

#include <Types.h>

Public Attributes

std::vector< std::shared_ptr< BotCommand > > commands { }
 A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.
std::shared_ptr< BotCommandScope > scope = nullptr
 A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
std::string languageCode = ""
 A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands.

Detailed Description

Arguments for Api::setMyCommands.

Definition at line 20670 of file Types.h.

Member Data Documentation

◆ commands

std::vector<std::shared_ptr<BotCommand> > TgBot::SetMyCommandsArgs::commands { }

A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.

Definition at line 20675 of file Types.h.

◆ languageCode

std::string TgBot::SetMyCommandsArgs::languageCode = ""

A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands.

Definition at line 20688 of file Types.h.

◆ scope

std::shared_ptr<BotCommandScope> TgBot::SetMyCommandsArgs::scope = nullptr

A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.

Definition at line 20681 of file Types.h.


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