Skip to content

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

Class: ChatBoostSourcePremium

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

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:3301

Parameters

ParameterType
payloadTelegramChatBoostSourcePremium

Returns

ChatBoostSourcePremium

Overrides

ChatBoostSource.constructor

Properties

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

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string

Inherited from

ChatBoostSource.[toStringTag]


source

Get Signature

get source(): "premium"

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

Source of the boost, always premium

Returns

"premium"


user

Get Signature

get user(): User

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

User that boosted the chat

Returns

User

Methods

is()

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

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

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