Skip to content

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

Class: GiftBackground

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

This object describes the background of a gift.

Documentation

Constructors

Constructor

new GiftBackground(payload): GiftBackground

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

Parameters

ParameterType
payloadTelegramGiftBackground

Returns

GiftBackground

Properties

PropertyTypeDefined in
payloadTelegramGiftBackgroundcontexts/index.d.ts:2130

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

Returns

string


centerColor

Get Signature

get centerColor(): number

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

Center color of the background in RGB format

Returns

number


edgeColor

Get Signature

get edgeColor(): number

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

Edge color of the background in RGB format

Returns

number


textColor

Get Signature

get textColor(): number

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

Text color of the background in RGB format

Returns

number