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

The background is a freeform gradient that rotates after every message in the chat. https://core.telegram.org/bots/api#backgroundfillfreeformgradient. More...

#include <BackgroundFill.hpp>

Inheritance diagram for tgbotxx::BackgroundFillFreeformGradient:
tgbotxx::BackgroundFill

Public Member Functions

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

Public Attributes

std::vector< std::int32_t > colors
 A list of 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format.
 
- Public Attributes inherited from tgbotxx::BackgroundFill
std::string type
 Type of the background fill, one of "solid", "gradient", "freeform_gradient".
 

Detailed Description

The background is a freeform gradient that rotates after every message in the chat. https://core.telegram.org/bots/api#backgroundfillfreeformgradient.

Definition at line 99 of file BackgroundFill.hpp.

Constructor & Destructor Documentation

◆ BackgroundFillFreeformGradient() [1/2]

tgbotxx::BackgroundFillFreeformGradient::BackgroundFillFreeformGradient ( )
inline

Definition at line 100 of file BackgroundFill.hpp.

◆ BackgroundFillFreeformGradient() [2/2]

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

Definition at line 103 of file BackgroundFill.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::BackgroundFill.

Definition at line 116 of file BackgroundFill.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::BackgroundFill.

Definition at line 110 of file BackgroundFill.hpp.

Member Data Documentation

◆ colors

std::vector<std::int32_t> tgbotxx::BackgroundFillFreeformGradient::colors

A list of 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format.

Definition at line 108 of file BackgroundFill.hpp.


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