GramIO API Reference / @gramio/contexts/dist / GiftBackground
Class: GiftBackground
Defined in: contexts/index.d.ts:2129
This object describes the background of a gift.
Constructors
Constructor
new GiftBackground(
payload):GiftBackground
Defined in: contexts/index.d.ts:2131
Parameters
| Parameter | Type |
|---|---|
payload | TelegramGiftBackground |
Returns
GiftBackground
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramGiftBackground | contexts/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