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

This object describes the type of a background. It can be one of: More...

#include <BackgroundType.hpp>

Inheritance diagram for tgbotxx::BackgroundType:
tgbotxx::BackgroundTypeChatTheme tgbotxx::BackgroundTypeFill tgbotxx::BackgroundTypePattern tgbotxx::BackgroundTypeWallpaper

Public Member Functions

 BackgroundType ()=default
 
 BackgroundType (const nl::json &json)
 
virtual ~BackgroundType ()=default
 
virtual nl::json toJson () const
 
virtual void fromJson (const nl::json &json)
 

Public Attributes

std::string type
 Type of the background, one of "fill", "wallpaper", "pattern", "chat_theme".
 

Detailed Description

Constructor & Destructor Documentation

◆ BackgroundType() [1/2]

tgbotxx::BackgroundType::BackgroundType ( )
default

◆ BackgroundType() [2/2]

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

Definition at line 16 of file BackgroundType.hpp.

◆ ~BackgroundType()

virtual tgbotxx::BackgroundType::~BackgroundType ( )
virtualdefault

Member Function Documentation

◆ fromJson()

virtual void tgbotxx::BackgroundType::fromJson ( const nl::json &  json)
inlinevirtual

◆ toJson()

virtual nl::json tgbotxx::BackgroundType::toJson ( ) const
inlinevirtual

Member Data Documentation

◆ type

std::string tgbotxx::BackgroundType::type

Type of the background, one of "fill", "wallpaper", "pattern", "chat_theme".

Definition at line 22 of file BackgroundType.hpp.


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