Skip to content

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

Class: AcceptedGiftTypes

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

This object describes the types of gifts that can be gifted to a user or a chat.

Documentation

Constructors

Constructor

new AcceptedGiftTypes(payload): AcceptedGiftTypes

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

Parameters

ParameterType
payloadTelegramAcceptedGiftTypes

Returns

AcceptedGiftTypes

Properties

PropertyTypeDefined in
payloadTelegramAcceptedGiftTypescontexts/index.d.ts:10

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


giftsFromChannels

Get Signature

get giftsFromChannels(): boolean

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

True, if transfers of unique gifts from channels are accepted

Returns

boolean


limitedGifts

Get Signature

get limitedGifts(): boolean

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

True, if limited regular gifts are accepted

Returns

boolean


premiumSubscription

Get Signature

get premiumSubscription(): boolean

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

True, if a Telegram Premium subscription is accepted

Returns

boolean


uniqueGifts

Get Signature

get uniqueGifts(): boolean

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

True, if unique gifts or gifts that can be upgraded to unique for free are accepted

Returns

boolean


unlimitedGifts

Get Signature

get unlimitedGifts(): boolean

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

True, if unlimited regular gifts are accepted

Returns

boolean