Skip to content

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

Class: BackgroundTypeFill ​

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

The background is automatically filled based on the selected colors.

Documentation

Constructors ​

Constructor ​

new BackgroundTypeFill(payload): BackgroundTypeFill

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

Parameters ​

ParameterType
payloadTelegramBackgroundTypeFill

Returns ​

BackgroundTypeFill

Properties ​

PropertyTypeDefined in
payloadTelegramBackgroundTypeFillcontexts/index.d.ts:1267

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


darkThemeDimming ​

Get Signature ​

get darkThemeDimming(): number

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

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

Returns ​

number


fill ​

Get Signature ​

get fill(): typeof BackgroundFillFreeformGradient | typeof BackgroundFillGradient | typeof BackgroundFillSolid

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

The background fill

Returns ​

typeof BackgroundFillFreeformGradient | typeof BackgroundFillGradient | typeof BackgroundFillSolid


type ​

Get Signature ​

get type(): "fill"

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

Type of the background, always “fill”

Returns ​

"fill"