tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::BotCommand Struct Reference

This object represents a bot command. https://core.telegram.org/bots/api#botcommand. More...

#include <BotCommand.hpp>

Public Member Functions

 BotCommand ()=default
 
 BotCommand (const nl::json &json)
 
nl::json toJson () const
 
void fromJson (const nl::json &json)
 

Public Attributes

std::string command
 Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores. More...
 
std::string description
 Description of the command; 1-256 characters. More...
 

Detailed Description

This object represents a bot command. https://core.telegram.org/bots/api#botcommand.

Definition at line 8 of file BotCommand.hpp.

Constructor & Destructor Documentation

◆ BotCommand() [1/2]

tgbotxx::BotCommand::BotCommand ( )
default

◆ BotCommand() [2/2]

tgbotxx::BotCommand::BotCommand ( const nl::json &  json)
inlineexplicit

Definition at line 10 of file BotCommand.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::BotCommand::fromJson ( const nl::json &  json)
inline

Definition at line 27 of file BotCommand.hpp.

◆ toJson()

nl::json tgbotxx::BotCommand::toJson ( ) const
inline

Definition at line 20 of file BotCommand.hpp.

Member Data Documentation

◆ command

std::string tgbotxx::BotCommand::command

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

Definition at line 15 of file BotCommand.hpp.

◆ description

std::string tgbotxx::BotCommand::description

Description of the command; 1-256 characters.

Definition at line 18 of file BotCommand.hpp.


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