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

The background is taken directly from a built-in chat theme. https://core.telegram.org/bots/api#backgroundtypechattheme. More...

#include <BackgroundType.hpp>

Inheritance diagram for tgbotxx::BackgroundTypeChatTheme:
tgbotxx::BackgroundType

Public Member Functions

 BackgroundTypeChatTheme ()
 
 BackgroundTypeChatTheme (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::BackgroundType
 BackgroundType ()=default
 
 BackgroundType (const nl::json &json)
 
virtual ~BackgroundType ()=default
 

Public Attributes

std::string themeName
 Name of the chat theme, which is usually an emoji.
 
- Public Attributes inherited from tgbotxx::BackgroundType
std::string type
 Type of the background, one of "fill", "wallpaper", "pattern", "chat_theme".
 

Detailed Description

The background is taken directly from a built-in chat theme. https://core.telegram.org/bots/api#backgroundtypechattheme.

Definition at line 157 of file BackgroundType.hpp.

Constructor & Destructor Documentation

◆ BackgroundTypeChatTheme() [1/2]

tgbotxx::BackgroundTypeChatTheme::BackgroundTypeChatTheme ( )
inline

Definition at line 158 of file BackgroundType.hpp.

◆ BackgroundTypeChatTheme() [2/2]

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

Definition at line 161 of file BackgroundType.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::BackgroundTypeChatTheme::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::BackgroundType.

Definition at line 174 of file BackgroundType.hpp.

◆ toJson()

nl::json tgbotxx::BackgroundTypeChatTheme::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::BackgroundType.

Definition at line 168 of file BackgroundType.hpp.

Member Data Documentation

◆ themeName

std::string tgbotxx::BackgroundTypeChatTheme::themeName

Name of the chat theme, which is usually an emoji.

Definition at line 166 of file BackgroundType.hpp.


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