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

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

Info about a group

Constructors

new
Chat_(params: { creator?: true; left?: true; deactivated?: true; call_active?: true; call_not_empty?: true; noforwards?: true; id: bigint; title: string; photo: enums.ChatPhoto; participants_count: number; date: number; version: number; migrated_to?: enums.InputChannel; admin_rights?: enums.ChatAdminRights; default_banned_rights?: enums.ChatBannedRights; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
admin_rights: enums.ChatAdminRights

Admin rights of the user in the group

optional
call_active: true

Whether a group call is currently active

optional
call_not_empty: true

Whether there's anyone in the group call

optional
creator: true

Whether the current user is the creator of the group

date: number

Date of creation of the group

optional
deactivated: true

Whether the group was migrated

optional
default_banned_rights: enums.ChatBannedRights

Default banned rights of all users in the group

id: bigint

ID of the group

optional
left: true

Whether the current user has left the group

optional
migrated_to: enums.InputChannel

Means this chat was upgraded to a supergroup

optional
noforwards: true

Whether this group is protected, thus does not allow forwarding messages from it

participants_count: number

Participant count

photo: enums.ChatPhoto

Chat photo

title: string

Title

version: number

Used in basic groups to reorder updates and make sure that all of them were received.

Static Properties

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