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>premium_BoostsStatus_

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

Contains info about the current boost status of a peer.

Constructors

new
premium_BoostsStatus_(params: { my_boost?: true; level: number; current_level_boosts: number; boosts: number; gift_boosts?: number; next_level_boosts?: number; premium_audience?: enums.StatsPercentValue; boost_url: string; prepaid_giveaways?: Array<enums.PrepaidGiveaway>; my_boost_slots?: Array<number>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
boost_url: string

Boost deep link » that can be used to boost the chat.

boosts: number

Total number of boosts acquired so far.

current_level_boosts: number

The number of boosts acquired so far in the current level.

optional
gift_boosts: number

The number of boosts acquired from created Telegram Premium gift codes and giveaways; only returned to channel admins.

level: number

The current boost level of the channel.

optional
my_boost: true

Whether we're currently boosting this channel, my_boost_slots will also be set.

optional
my_boost_slots: Array<number>

Indicates which of our boost slots we've assigned to this peer (populated if my_boost is set).

optional
next_level_boosts: number

Total number of boosts needed to reach the next level; if absent, the next level isn't available.

optional
premium_audience: enums.StatsPercentValue

Only returned to channel admins: contains the approximated number of Premium users subscribed to the channel, related to the total number of subscribers.

optional
prepaid_giveaways: Array<enums.PrepaidGiveaway>

A list of prepaid giveaways available for the chat; only returned to channel admins.

Static Properties

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