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

The background is automatically filled based on the selected colors. https://core.telegram.org/bots/api#backgroundtypefill. More...

#include <BackgroundType.hpp>

Inheritance diagram for tgbotxx::BackgroundTypeFill:
tgbotxx::BackgroundType

Public Member Functions

 BackgroundTypeFill ()
 
 BackgroundTypeFill (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

Ptr< BackgroundFillfill
 The background fill.
 
std::int32_t darkThemeDimming {}
 Dimming of the background in dark themes, as a percentage; 0-100.
 
- 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 automatically filled based on the selected colors. https://core.telegram.org/bots/api#backgroundtypefill.

Definition at line 42 of file BackgroundType.hpp.

Constructor & Destructor Documentation

◆ BackgroundTypeFill() [1/2]

tgbotxx::BackgroundTypeFill::BackgroundTypeFill ( )
inline

Definition at line 43 of file BackgroundType.hpp.

◆ BackgroundTypeFill() [2/2]

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

Definition at line 46 of file BackgroundType.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::BackgroundType.

Definition at line 63 of file BackgroundType.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::BackgroundType.

Definition at line 56 of file BackgroundType.hpp.

Member Data Documentation

◆ darkThemeDimming

std::int32_t tgbotxx::BackgroundTypeFill::darkThemeDimming {}

Dimming of the background in dark themes, as a percentage; 0-100.

Definition at line 54 of file BackgroundType.hpp.

◆ fill

Ptr<BackgroundFill> tgbotxx::BackgroundTypeFill::fill

The background fill.

Definition at line 51 of file BackgroundType.hpp.


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