Skip to content

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

Class: GiftBackground

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

This object describes the background of a gift.

Documentation

Constructors

Constructor

new GiftBackground(payload): GiftBackground

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

Parameters

ParameterType
payloadTelegramGiftBackground

Returns

GiftBackground

Properties

PropertyTypeDefined in
payloadTelegramGiftBackgroundcontexts/index.d.ts:2541

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

Returns

string


centerColor

Get Signature

get centerColor(): number

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

Center color of the background in RGB format

Returns

number


edgeColor

Get Signature

get edgeColor(): number

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

Edge color of the background in RGB format

Returns

number


textColor

Get Signature

get textColor(): number

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

Text color of the background in RGB format

Returns

number