Skip to content

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

Class: ChatBoostSourcePremium ​

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

The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.

Extends ​

  • ChatBoostSource

Constructors ​

Constructor ​

new ChatBoostSourcePremium(payload): ChatBoostSourcePremium

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

Parameters ​

ParameterType
payloadTelegramChatBoostSourcePremium

Returns ​

ChatBoostSourcePremium

Overrides ​

ChatBoostSource.constructor

Properties ​

PropertyTypeOverridesDefined in
payloadTelegramChatBoostSourcePremiumChatBoostSource.payloadcontexts/index.d.ts:3743

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string

Inherited from ​

ChatBoostSource.[toStringTag]


source ​

Get Signature ​

get source(): "premium"

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

Source of the boost, always premium

Returns ​

"premium"


user ​

Get Signature ​

get user(): User

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

User that boosted the chat

Returns ​

User

Methods ​

is() ​

is<T>(source): this is ChatBoostSourceMapping[T]

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

Is this chat boost source a certain one?

Type Parameters ​

Type Parameter
T extends "giveaway" | "premium" | "gift_code"

Parameters ​

ParameterType
sourceT

Returns ​

this is ChatBoostSourceMapping[T]

Inherited from ​

ChatBoostSource.is