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

x/mtkruto/mod.ts>User

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface User
Re-export
import { type User } from "https://deno.land/x/mtkruto@0.1.117/mod.ts";

This object represents a Telegram user or bot.

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: ChatPhoto.User

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