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

This object represents a bot command. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<BotCommand>

Public Attributes

std::string command { }
 Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.
std::string description { }
 Description of the command; 1-256 characters.
std::optional< bool > isEphemeral { }
 Optional. True, if the command sends an ephemeral message, which can be seen only by the sender of the message and the bot.

Detailed Description

This object represents a bot command.

Definition at line 902 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 903 of file Types.h.

Member Data Documentation

◆ command

std::string TgBot::BotCommand::command { }

Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.

Definition at line 909 of file Types.h.

◆ description

std::string TgBot::BotCommand::description { }

Description of the command; 1-256 characters.

Definition at line 914 of file Types.h.

◆ isEphemeral

std::optional<bool> TgBot::BotCommand::isEphemeral { }

Optional. True, if the command sends an ephemeral message, which can be seen only by the sender of the message and the bot.

Definition at line 920 of file Types.h.


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