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

x/mtkruto/3_types.ts>Chat.Private

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface Chat.Private
implements Base
import { type Chat } from "https://deno.land/x/mtkruto@0.1.118/3_types.ts";
const { Private } = Chat;

Properties

type: "private"
optional
isBot: boolean

Whether this is a bot's chat.

firstName: string

The first name of the user.

optional
lastName: string

The last name of the user.

optional
username: string

The user's main username.

optional
also: string[]

The user's other usernames.

optional
photo: ChatPhoto.User

The user's profile photo.

isScam: boolean

Whether the user has been identified as scam.

isFake: boolean

Whether the user has been identified as an impersonator.

isSupport: boolean

Whether the user is official support.

isVerified: boolean

Whether the user has been verified.

optional
isRestricted: boolean

Whether the user has been restricted.

optional
restrictionReason: RestrictionReason[]

The reason why the user has been restricted.