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

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

#include <BotDescription.hpp>

Public Member Functions

 BotDescription ()=default
 
 BotDescription (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 description
 The bot's description. More...
 

Detailed Description

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

Definition at line 7 of file BotDescription.hpp.

Constructor & Destructor Documentation

◆ BotDescription() [1/2]

tgbotxx::BotDescription::BotDescription ( )
default

◆ BotDescription() [2/2]

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

Definition at line 9 of file BotDescription.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 25 of file BotDescription.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 18 of file BotDescription.hpp.

Member Data Documentation

◆ description

std::string tgbotxx::BotDescription::description

The bot's description.

Definition at line 14 of file BotDescription.hpp.


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