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

This object represents the bot's short description. https://core.telegram.org/bots/api#botshortdescription. More...

#include <BotShortDescription.hpp>

Public Member Functions

 BotShortDescription ()=default
 
 BotShortDescription (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

std::string shortDescription
 The bot's short description. More...
 

Detailed Description

This object represents the bot's short description. https://core.telegram.org/bots/api#botshortdescription.

Definition at line 7 of file BotShortDescription.hpp.

Constructor & Destructor Documentation

◆ BotShortDescription() [1/2]

tgbotxx::BotShortDescription::BotShortDescription ( )
default

◆ BotShortDescription() [2/2]

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

Definition at line 9 of file BotShortDescription.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 25 of file BotShortDescription.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 18 of file BotShortDescription.hpp.

Member Data Documentation

◆ shortDescription

std::string tgbotxx::BotShortDescription::shortDescription

The bot's short description.

Definition at line 14 of file BotShortDescription.hpp.


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