Skip to main content
Module

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

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

This object represents a Telegram user or bot.

Properties

id: number

Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.

idColor: string
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

Chat 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