Skip to content

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

Class: ChatBoost ​

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

This object contains information about a chat boost.

Constructors ​

Constructor ​

new ChatBoost(payload): ChatBoost

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

Parameters ​

ParameterType
payloadTelegramChatBoost

Returns ​

ChatBoost

Properties ​

PropertyTypeDefined in
payloadTelegramChatBoostcontexts/index.d.ts:3777

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


addDate ​

Get Signature ​

get addDate(): number

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

Point in time (Unix timestamp) when the chat was boosted

Returns ​

number


expirationDate ​

Get Signature ​

get expirationDate(): number

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

Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged

Returns ​

number


id ​

Get Signature ​

get id(): string

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

Unique identifier of the boost

Returns ​

string


source ​

Get Signature ​

get source(): ChatBoostSourcePremium | ChatBoostSourceGiftCode | ChatBoostSourceGiveaway

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

Source of the added boost

Returns ​

ChatBoostSourcePremium | ChatBoostSourceGiftCode | ChatBoostSourceGiveaway