Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/types/2_invite_link.ts>InviteLink

Cross-runtime JavaScript library for building Telegram clients
Latest
interface InviteLink
import { type InviteLink } from "https://deno.land/x/mtkruto@0.6.3/types/2_invite_link.ts";

A chat invite link.

Properties

creator: User

The user who created the invite link.

requiresApproval: boolean

Whether an admin must explicitly approve join requests originating from this invite link.

revoked: boolean

Whether the invite link is revoked.

optional
title: string

An optional title.

optional
expiresAt: Date

A point in time within the future in which the invite link will be revoked.

optional
limit: number

The times the invite link can be used.

optional
pendingJoinRequestCount: number

The number of pending join requests originating from this invite link.

optional
subscriptionPrice: number

The amount of stars required to renew the subscription.

optional
subscriptionExpiresIn: number

The remaining duration (in seconds) until the subscription expires.