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

x/mtkruto/tl/2_types.ts>User

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class User
extends _TypeUser
import { User } from "https://deno.land/x/mtkruto@0.1.117/tl/2_types.ts";

Constructors

new
User(params: { self?: true; contact?: true; mutualContact?: true; deleted?: true; bot?: true; botChatHistory?: true; botNochats?: true; verified?: true; restricted?: true; min?: true; botInlineGeo?: true; support?: true; scam?: true; applyMinPhoto?: true; fake?: true; botAttachMenu?: true; premium?: true; attachMenuEnabled?: true; botCanEdit?: true; closeFriend?: true; storiesHidden?: true; storiesUnavailable?: true; id: bigint; accessHash?: bigint; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: TypeUserProfilePhoto; status?: TypeUserStatus; botInfoVersion?: number; restrictionReason?: Array<TypeRestrictionReason>; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: TypeEmojiStatus; usernames?: Array<TypeUsername>; storiesMaxId?: number; color?: number; backgroundEmojiId?: bigint; })

Properties

protected
readonly
[id]
protected
readonly
[params]: Params
optional
accessHash: bigint
optional
applyMinPhoto: true
optional
attachMenuEnabled: true
optional
backgroundEmojiId: bigint
optional
bot: true
optional
botAttachMenu: true
optional
botCanEdit: true
optional
botChatHistory: true
optional
botInfoVersion: number
optional
botInlineGeo: true
optional
botInlinePlaceholder: string
optional
botNochats: true
optional
closeFriend: true
optional
color: number
optional
contact: true
optional
deleted: true
optional
emojiStatus: TypeEmojiStatus
optional
fake: true
optional
firstName: string
id: bigint
optional
langCode: string
optional
lastName: string
optional
min: true
optional
mutualContact: true
optional
phone: string
optional
photo: TypeUserProfilePhoto
optional
premium: true
optional
restricted: true
optional
restrictionReason: Array<TypeRestrictionReason>
optional
scam: true
optional
self: true
optional
status: TypeUserStatus
optional
storiesHidden: true
optional
storiesMaxId: number
optional
storiesUnavailable: true
optional
support: true
optional
username: string
optional
usernames: Array<TypeUsername>
optional
verified: true

Static Properties

readonly
[paramDesc]: ParamDesc