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

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

An attempt to write a Deno-native MTProto client
Go to Latest
class User
extends TypeUser
import { User } from "https://deno.land/x/mtkruto@0.0.62/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; 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>; })

Properties

protected
readonly
[id]
protected
readonly
[params]: Params
optional
accessHash: bigint
optional
applyMinPhoto: true
optional
attachMenuEnabled: true
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
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
support: true
optional
username: string
optional
usernames: Array<TypeUsername>
optional
verified: true

Static Properties

readonly
[paramDesc]: ParamDesc