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

x/mtkruto/mod.ts>Chat.ChannelBase

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

Properties

title: string

Title, for supergroups, channels and group chats

optional
username: string

Username, for private chats, supergroups and channels if available

optional
also: string[]

Additional usernames

optional
photo: ChatPhoto.Chat

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.

isVerified: boolean

True, if the user is verified

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.