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

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

#include <BotName.hpp>

Public Member Functions

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

Detailed Description

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

Definition at line 7 of file BotName.hpp.

Constructor & Destructor Documentation

◆ BotName() [1/2]

tgbotxx::BotName::BotName ( )
default

◆ BotName() [2/2]

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

Definition at line 9 of file BotName.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 25 of file BotName.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 18 of file BotName.hpp.

Member Data Documentation

◆ name

std::string tgbotxx::BotName::name

The bot's name.

Definition at line 14 of file BotName.hpp.


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