Skip to content

GramIO API Reference / @gramio/contexts/dist / BackgroundFillFreeformGradient

Class: BackgroundFillFreeformGradient ​

Defined in: contexts/index.d.ts:1163

The background is a freeform gradient that rotates after every message in the chat.

Documentation

Constructors ​

Constructor ​

new BackgroundFillFreeformGradient(payload): BackgroundFillFreeformGradient

Defined in: contexts/index.d.ts:1165

Parameters ​

ParameterType
payloadTelegramBackgroundFillFreeformGradient

Returns ​

BackgroundFillFreeformGradient

Properties ​

PropertyTypeDefined in
payloadTelegramBackgroundFillFreeformGradientcontexts/index.d.ts:1164

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:1167

MDN

Returns ​

string


colors ​

Get Signature ​

get colors(): number[]

Defined in: contexts/index.d.ts:1175

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:1171

Type of the background fill, always “freeform_gradient”

Returns ​

"freeform_gradient"