Skip to main content
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.101/mod.ts";

This object represents a Telegram user or bot.

Properties

id: number

Unique identifier for this user or bot

color: Color
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