tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::ChatBackground Struct Reference

This object represents a chat background. https://core.telegram.org/bots/api#chatbackground. More...

#include <ChatBackground.hpp>

Public Member Functions

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

Public Attributes

Ptr< BackgroundTypetype
 Type of the background.
 

Detailed Description

This object represents a chat background. https://core.telegram.org/bots/api#chatbackground.

Definition at line 9 of file ChatBackground.hpp.

Constructor & Destructor Documentation

◆ ChatBackground() [1/2]

tgbotxx::ChatBackground::ChatBackground ( )
default

◆ ChatBackground() [2/2]

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

Definition at line 11 of file ChatBackground.hpp.

Member Function Documentation

◆ fromJson()

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

Definition at line 24 of file ChatBackground.hpp.

◆ toJson()

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

Definition at line 18 of file ChatBackground.hpp.

Member Data Documentation

◆ type

Ptr<BackgroundType> tgbotxx::ChatBackground::type

Type of the background.

Definition at line 16 of file ChatBackground.hpp.


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