Skip to content

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

Class: UniqueGiftColors ​

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

This object contains information about the color scheme for a user's name, message replies and link previews based on a unique gift.

Documentation

Constructors ​

Constructor ​

new UniqueGiftColors(payload): UniqueGiftColors

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

Parameters ​

ParameterType
payloadTelegramUniqueGiftColors

Returns ​

UniqueGiftColors

Properties ​

PropertyTypeDefined in
payloadTelegramUniqueGiftColorscontexts/index.d.ts:3087

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

Returns ​

string


darkThemeMainColor ​

Get Signature ​

get darkThemeMainColor(): number

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

Main color used in dark themes; RGB format

Returns ​

number


darkThemeOtherColors ​

Get Signature ​

get darkThemeOtherColors(): number[]

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

List of 1-3 additional colors used in dark themes; RGB format

Returns ​

number[]


lightThemeMainColor ​

Get Signature ​

get lightThemeMainColor(): number

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

Main color used in light themes; RGB format

Returns ​

number


lightThemeOtherColors ​

Get Signature ​

get lightThemeOtherColors(): number[]

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

List of 1-3 additional colors used in light themes; RGB format

Returns ​

number[]


modelCustomEmojiId ​

Get Signature ​

get modelCustomEmojiId(): string

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

Custom emoji identifier of the unique gift's model

Returns ​

string


symbolCustomEmojiId ​

Get Signature ​

get symbolCustomEmojiId(): string

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

Custom emoji identifier of the unique gift's symbol

Returns ​

string