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

x/grm/src/tl/mod.ts>Api.User

MTProto API Client for Deno 🦕
Go to Latest
class Api.User
extends VirtualClass<{ self?: boolean; contact?: boolean; mutualContact?: boolean; deleted?: boolean; bot?: boolean; botChatHistory?: boolean; botNochats?: boolean; verified?: boolean; restricted?: boolean; min?: boolean; botInlineGeo?: boolean; support?: boolean; scam?: boolean; applyMinPhoto?: boolean; fake?: boolean; botAttachMenu?: boolean; premium?: boolean; attachMenuEnabled?: boolean; id: long; accessHash?: long; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: Api.TypeUserProfilePhoto; status?: Api.TypeUserStatus; botInfoVersion?: int; restrictionReason?: Api.TypeRestrictionReason[]; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: Api.TypeEmojiStatus; }>
import { Api } from "https://deno.land/x/grm@0.5.1/src/tl/mod.ts";
const { User } = Api;

Properties

optional
accessHash: long
optional
applyMinPhoto: boolean
optional
attachMenuEnabled: boolean
optional
bot: boolean
optional
botAttachMenu: boolean
optional
botChatHistory: boolean
optional
botInfoVersion: int
optional
botInlineGeo: boolean
optional
botInlinePlaceholder: string
optional
botNochats: boolean
className: "User"
classType: "constructor"
CONSTRUCTOR_ID: 1570352622
optional
contact: boolean
optional
deleted: boolean
optional
emojiStatus: Api.TypeEmojiStatus
optional
fake: boolean
optional
firstName: string
id: long
optional
langCode: string
optional
lastName: string
optional
min: boolean
optional
mutualContact: boolean
optional
phone: string
optional
photo: Api.TypeUserProfilePhoto
optional
premium: boolean
optional
restricted: boolean
optional
restrictionReason: Api.TypeRestrictionReason[]
optional
scam: boolean
optional
self: boolean
optional
status: Api.TypeUserStatus
SUBCLASS_OF_ID: 765557111
optional
support: boolean
optional
username: string
optional
verified: boolean

Static Methods

fromReader(reader: Reader): User