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

x/mtkruto/3_types.ts>User

Cross-runtime JavaScript library for building Telegram clients
Latest
interface User
Re-export
import { type User } from "https://deno.land/x/mtkruto@0.6.2/3_types.ts";

A user.

Properties

id: number

Unique identifier for this user or bot

color: number

Identifier of color that can be displayed instead of the user's photo.

isBot: boolean

Whether the user is a bot.

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 additional usernames.

optional
photo: ChatPhoto

The user's profile photo.

optional
languageCode: string

The user's IETF language tag.

isScam: boolean

Whether the user has been identified as scam.

isFake: boolean

Whether the user has been identified as an impersonator.

isPremium: boolean

Whether the user is subscribed to Telegram Premium.

isVerified: boolean

Whether the user has been verified.

isSupport: boolean

Whether the user is official support.

addedToAttachmentMenu: boolean

Whether the user is a bot that has been added to the attachment menu by the current user.