GramIO API Reference / @gramio/contexts/dist / BackgroundFillFreeformGradient
Class: BackgroundFillFreeformGradient
Defined in: contexts/index.d.ts:951
The background is a freeform gradient that rotates after every message in the chat.
Constructors
Constructor
new BackgroundFillFreeformGradient(
payload):BackgroundFillFreeformGradient
Defined in: contexts/index.d.ts:953
Parameters
| Parameter | Type |
|---|---|
payload | TelegramBackgroundFillFreeformGradient |
Returns
BackgroundFillFreeformGradient
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramBackgroundFillFreeformGradient | contexts/index.d.ts:952 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:955
Returns
string
colors
Get Signature
get colors():
number[]
Defined in: contexts/index.d.ts:963
A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format
Returns
number[]
type
Get Signature
get type():
"freeform_gradient"
Defined in: contexts/index.d.ts:959
Type of the background fill, always “freeform_gradient”
Returns
"freeform_gradient"