Skip to main content
Module

x/mtkruto/mod.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.0.999/mod.ts";
const { Private } = Chat;

Properties

type: "private"
optional
isBot: boolean

True, if this user is a bot

firstName: string

First name of the other party in a private chat

optional
lastName: string

Last name of the other party in a private chat

optional
username: string

Username, for private chats, supergroups and channels if available

optional
also: string[]

Additional usernames

optional
photo: ChatPhoto.User

Chat photo.

isScam: boolean

True, if the user is a scam user

isFake: boolean

True, if this user was reported by many users as a fake or scam user: be careful when interacting with them.

isSupport: boolean

True, if the user is an official support user

isVerified: boolean

True, if the user is verified

optional
isRestricted: boolean

True, if the access to the user must be restricted for the reason specified in restriction_reason

optional
restrictionReason: types.RestrictionReason[]

Contains the reason why access to the user must be restricted.