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_createChat_

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

Creates a new chat.

Constructors

new
messages_createChat_(params: { users: Array<enums.InputUser>; title: string; ttl_period?: number; })

Properties

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

Chat name

optional
ttl_period: number

Time-to-live of all messages that will be sent in the chat: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use messages.setDefaultHistoryTTL to edit this value later.

users: Array<enums.InputUser>

List of user IDs to be invited

Static Properties

__F: (params: { users: Array<enums.InputUser>; title: string; ttl_period?: number; }) => enums.Updates
readonly
[name]: string
readonly
[paramDesc]: ParamDesc