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

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

Contains information about a single boost slot ».

Constructors

new
MyBoost_(params: { slot: number; peer?: enums.Peer; date: number; expires: number; cooldown_until_date?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
cooldown_until_date: number

If peer is set, indicates the (unixtime) date after which this boost can be reassigned to another channel.

date: number

When (unixtime) we started boosting the peer, 0 otherwise.

expires: number

Indicates the (unixtime) expiration date of the boost in peer (0 if peer is not set).

optional
peer: enums.Peer

If set, indicates this slot is currently occupied, i.e. we are boosting this peer.
Note that we can assign multiple boost slots to the same peer.

slot: number

Static Properties

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