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

x/grm/tl/api.d.ts>Api.User

MTProto API Client for Deno 🦕
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; usernames?: Api.TypeUsername[]; }>
import { Api } from "https://deno.land/x/grm@0.8.2/tl/api.d.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: 2409088552
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
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
usernames: Api.TypeUsername[]
optional
verified: boolean