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
| Parameter | Type |
|---|---|
payload | TelegramChatBoostSourcePremium |
Returns
ChatBoostSourcePremium
Overrides
ChatBoostSource.constructor
Properties
| Property | Type | Overrides | Defined in |
|---|---|---|---|
payload | TelegramChatBoostSourcePremium | ChatBoostSource.payload | contexts/index.d.ts:3300 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:3317
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
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
| Parameter | Type |
|---|---|
source | T |
Returns
this is ChatBoostSourceMapping[T]
Inherited from
ChatBoostSource.is