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

x/mtkruto/types/1_user.ts>User

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface User
import { type User } from "https://deno.land/x/mtkruto@0.1.141/types/1_user.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

True, if this user is a bot

firstName: string

User's or bot's first name

optional
lastName: string

User's or bot's last name

optional
username: string

User's or bot's username

optional
also: string[]

Additional usernames

optional
photo: ChatPhotoUser

The user's photo.

optional
languageCode: string

IETF language tag of the user's language

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.

isPremium: boolean

True, if this user is a Telegram Premium user

isVerified: boolean

True, if the user is verified

isSupport: boolean

True, if the user is an official support user

addedToAttachmentMenu: boolean

True, if this user added the bot to the attachment menu