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

x/mtkruto/tl/3_functions.ts>messages_exportChatInvite_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_exportChatInvite_
extends Function_<enums.ExportedChatInvite>
import { messages_exportChatInvite_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Export an invite link for a chat

Constructors

new
messages_exportChatInvite_(params: { legacy_revoke_permanent?: true; request_needed?: true; peer: enums.InputPeer; expire_date?: number; usage_limit?: number; title?: string; })

Properties

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

Expiration date

optional
legacy_revoke_permanent: true

Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients.

peer: enums.InputPeer

Chat

optional
request_needed: true

Whether admin confirmation is required before admitting each separate user into the chat

optional
title: string

Description of the invite link, visible only to administrators

optional
usage_limit: number

Maximum number of users that can join using this link

Static Properties

__F: (params: { legacy_revoke_permanent?: true; request_needed?: true; peer: enums.InputPeer; expire_date?: number; usage_limit?: number; title?: string; }) => enums.ExportedChatInvite
readonly
[name]: string
readonly
[paramDesc]: ParamDesc