Skip to content

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

Class: GiftBackground ​

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

This object describes the background of a gift.

Documentation

Constructors ​

Constructor ​

new GiftBackground(payload): GiftBackground

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

Parameters ​

ParameterType
payloadTelegramGiftBackground

Returns ​

GiftBackground

Properties ​

PropertyTypeDefined in
payloadTelegramGiftBackgroundcontexts/index.d.ts:2335

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

Returns ​

string


centerColor ​

Get Signature ​

get centerColor(): number

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

Center color of the background in RGB format

Returns ​

number


edgeColor ​

Get Signature ​

get edgeColor(): number

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

Edge color of the background in RGB format

Returns ​

number


textColor ​

Get Signature ​

get textColor(): number

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

Text color of the background in RGB format

Returns ​

number