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

x/mtkruto/2_tl.ts>types.User

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

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; })

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
closeFriend: 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
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