|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
The background is a PNG or TGV pattern combined with a fill. https://core.telegram.org/bots/api#backgroundtypepattern. More...
#include <BackgroundType.hpp>
Public Member Functions | |
| BackgroundTypePattern () | |
| BackgroundTypePattern (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< Document > | document |
| Document with the pattern. | |
| Ptr< BackgroundFill > | fill |
| The background fill that is combined with the pattern. | |
| std::int32_t | intensity {} |
| Intensity of the pattern when it is shown above the filled background; 0-100. | |
| bool | isInverted {} |
| Optional. True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only. | |
| bool | isMoving {} |
| Optional. True, if the background moves slightly when the device is tilted. | |
Public Attributes inherited from tgbotxx::BackgroundType | |
| std::string | type |
| Type of the background, one of "fill", "wallpaper", "pattern", "chat_theme". | |
The background is a PNG or TGV pattern combined with a fill. https://core.telegram.org/bots/api#backgroundtypepattern.
Definition at line 112 of file BackgroundType.hpp.
|
inline |
Definition at line 113 of file BackgroundType.hpp.
|
inlineexplicit |
Definition at line 116 of file BackgroundType.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::BackgroundType.
Definition at line 145 of file BackgroundType.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::BackgroundType.
Definition at line 135 of file BackgroundType.hpp.
Document with the pattern.
Definition at line 121 of file BackgroundType.hpp.
| Ptr<BackgroundFill> tgbotxx::BackgroundTypePattern::fill |
The background fill that is combined with the pattern.
Definition at line 124 of file BackgroundType.hpp.
| std::int32_t tgbotxx::BackgroundTypePattern::intensity {} |
Intensity of the pattern when it is shown above the filled background; 0-100.
Definition at line 127 of file BackgroundType.hpp.
| bool tgbotxx::BackgroundTypePattern::isInverted {} |
Optional. True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only.
Definition at line 130 of file BackgroundType.hpp.
| bool tgbotxx::BackgroundTypePattern::isMoving {} |
Optional. True, if the background moves slightly when the device is tilted.
Definition at line 133 of file BackgroundType.hpp.