Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>Boost_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class Boost_
extends _Boost_
import { Boost_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Info about one or more boosts applied by a specific user.

Constructors

new
Boost_(params: { gift?: true; giveaway?: true; unclaimed?: true; id: string; user_id?: bigint; giveaway_msg_id?: number; date: number; expires: number; used_gift_slug?: string; multiplier?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
date: number

When was the boost applied

expires: number

When does the boost expire

optional
gift: true

Whether this boost was applied because the channel directly gifted a subscription to the user.

optional
giveaway: true

Whether this boost was applied because the user was chosen in a giveaway started by the channel.

optional
giveaway_msg_id: number

The message ID of the giveaway

id: string

Unique ID for this set of boosts.

optional
multiplier: number

If set, this boost counts as multiplier boosts, otherwise it counts as a single boost.

optional
unclaimed: true

If set, the user hasn't yet invoked payments.applyGiftCode to claim a subscription gifted directly or in a giveaway by the channel.

optional
used_gift_slug: string

The created Telegram Premium gift code, only set if either gift or giveaway are set AND it is either a gift code for the currently logged in user or if it was already claimed.

optional
user_id: bigint

ID of the user that applied the boost.

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc