Options
All
  • Public
  • Public/Protected
  • All
Menu

Class User

Hierarchy

  • 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; botCanEdit?: boolean; closeFriend?: boolean; storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; id: long; accessHash?: long; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: TypeUserProfilePhoto; status?: TypeUserStatus; botInfoVersion?: int; restrictionReason?: TypeRestrictionReason[]; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: TypeEmojiStatus; usernames?: TypeUsername[]; storiesMaxId?: int; color?: TypePeerColor; profileColor?: TypePeerColor }>
    • User

Index

Properties

CONSTRUCTOR_ID: number
SUBCLASS_OF_ID: number
className: string
classType: "constructor" | "request"
originalArgs: { 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; botCanEdit?: boolean; closeFriend?: boolean; storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; id: BigInteger; accessHash?: BigInteger; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: TypeUserProfilePhoto; status?: TypeUserStatus; botInfoVersion?: number; restrictionReason?: RestrictionReason[]; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: TypeEmojiStatus; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor }

Type declaration

  • Optional self?: boolean
  • Optional contact?: boolean
  • Optional mutualContact?: boolean
  • Optional deleted?: boolean
  • Optional bot?: boolean
  • Optional botChatHistory?: boolean
  • Optional botNochats?: boolean
  • Optional verified?: boolean
  • Optional restricted?: boolean
  • Optional min?: boolean
  • Optional botInlineGeo?: boolean
  • Optional support?: boolean
  • Optional scam?: boolean
  • Optional applyMinPhoto?: boolean
  • Optional fake?: boolean
  • Optional botAttachMenu?: boolean
  • Optional premium?: boolean
  • Optional attachMenuEnabled?: boolean
  • Optional botCanEdit?: boolean
  • Optional closeFriend?: boolean
  • Optional storiesHidden?: boolean
  • Optional storiesUnavailable?: boolean
  • Optional contactRequirePremium?: boolean
  • id: BigInteger
  • Optional accessHash?: BigInteger
  • Optional firstName?: string
  • Optional lastName?: string
  • Optional username?: string
  • Optional phone?: string
  • Optional photo?: TypeUserProfilePhoto
  • Optional status?: TypeUserStatus
  • Optional botInfoVersion?: number
  • Optional restrictionReason?: RestrictionReason[]
  • Optional botInlinePlaceholder?: string
  • Optional langCode?: string
  • Optional emojiStatus?: TypeEmojiStatus
  • Optional usernames?: Api.Username[]
  • Optional storiesMaxId?: number
  • Optional color?: PeerColor
  • Optional profileColor?: PeerColor
CONSTRUCTOR_ID: 559694904
SUBCLASS_OF_ID: 765557111
classType: "constructor"
className: "User"
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
botCanEdit?: boolean
closeFriend?: boolean
storiesHidden?: boolean
storiesUnavailable?: boolean
contactRequirePremium?: boolean
id: BigInteger
accessHash?: BigInteger
firstName?: string
lastName?: string
username?: string
phone?: string
botInfoVersion?: number
restrictionReason?: RestrictionReason[]
botInlinePlaceholder?: string
langCode?: string
emojiStatus?: TypeEmojiStatus
usernames?: Api.Username[]
storiesMaxId?: number
color?: PeerColor
profileColor?: PeerColor

Methods

  • serializeBytes(data: string | Buffer): Buffer
  • serializeDate(date: number | Date): Buffer
  • getBytes(): Buffer
  • toJSON(): { 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; botCanEdit?: boolean; closeFriend?: boolean; storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; id: BigInteger; accessHash?: BigInteger; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: TypeUserProfilePhoto; status?: TypeUserStatus; botInfoVersion?: number; restrictionReason?: RestrictionReason[]; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: TypeEmojiStatus; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor }
  • Returns { 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; botCanEdit?: boolean; closeFriend?: boolean; storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; id: BigInteger; accessHash?: BigInteger; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: TypeUserProfilePhoto; status?: TypeUserStatus; botInfoVersion?: number; restrictionReason?: RestrictionReason[]; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: TypeEmojiStatus; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor }

    • Optional self?: boolean
    • Optional contact?: boolean
    • Optional mutualContact?: boolean
    • Optional deleted?: boolean
    • Optional bot?: boolean
    • Optional botChatHistory?: boolean
    • Optional botNochats?: boolean
    • Optional verified?: boolean
    • Optional restricted?: boolean
    • Optional min?: boolean
    • Optional botInlineGeo?: boolean
    • Optional support?: boolean
    • Optional scam?: boolean
    • Optional applyMinPhoto?: boolean
    • Optional fake?: boolean
    • Optional botAttachMenu?: boolean
    • Optional premium?: boolean
    • Optional attachMenuEnabled?: boolean
    • Optional botCanEdit?: boolean
    • Optional closeFriend?: boolean
    • Optional storiesHidden?: boolean
    • Optional storiesUnavailable?: boolean
    • Optional contactRequirePremium?: boolean
    • id: BigInteger
    • Optional accessHash?: BigInteger
    • Optional firstName?: string
    • Optional lastName?: string
    • Optional username?: string
    • Optional phone?: string
    • Optional photo?: TypeUserProfilePhoto
    • Optional status?: TypeUserStatus
    • Optional botInfoVersion?: number
    • Optional restrictionReason?: RestrictionReason[]
    • Optional botInlinePlaceholder?: string
    • Optional langCode?: string
    • Optional emojiStatus?: TypeEmojiStatus
    • Optional usernames?: Api.Username[]
    • Optional storiesMaxId?: number
    • Optional color?: PeerColor
    • Optional profileColor?: PeerColor
  • fromReader(reader: any): User

Constructors

  • new User(args: { 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; botCanEdit?: boolean; closeFriend?: boolean; storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; id: BigInteger; accessHash?: BigInteger; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: TypeUserProfilePhoto; status?: TypeUserStatus; botInfoVersion?: number; restrictionReason?: RestrictionReason[]; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: TypeEmojiStatus; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor }): User
  • Parameters

    • args: { 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; botCanEdit?: boolean; closeFriend?: boolean; storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; id: BigInteger; accessHash?: BigInteger; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: TypeUserProfilePhoto; status?: TypeUserStatus; botInfoVersion?: number; restrictionReason?: RestrictionReason[]; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: TypeEmojiStatus; usernames?: Api.Username[]; storiesMaxId?: number; color?: PeerColor; profileColor?: PeerColor }
      • Optional self?: boolean
      • Optional contact?: boolean
      • Optional mutualContact?: boolean
      • Optional deleted?: boolean
      • Optional bot?: boolean
      • Optional botChatHistory?: boolean
      • Optional botNochats?: boolean
      • Optional verified?: boolean
      • Optional restricted?: boolean
      • Optional min?: boolean
      • Optional botInlineGeo?: boolean
      • Optional support?: boolean
      • Optional scam?: boolean
      • Optional applyMinPhoto?: boolean
      • Optional fake?: boolean
      • Optional botAttachMenu?: boolean
      • Optional premium?: boolean
      • Optional attachMenuEnabled?: boolean
      • Optional botCanEdit?: boolean
      • Optional closeFriend?: boolean
      • Optional storiesHidden?: boolean
      • Optional storiesUnavailable?: boolean
      • Optional contactRequirePremium?: boolean
      • id: BigInteger
      • Optional accessHash?: BigInteger
      • Optional firstName?: string
      • Optional lastName?: string
      • Optional username?: string
      • Optional phone?: string
      • Optional photo?: TypeUserProfilePhoto
      • Optional status?: TypeUserStatus
      • Optional botInfoVersion?: number
      • Optional restrictionReason?: RestrictionReason[]
      • Optional botInlinePlaceholder?: string
      • Optional langCode?: string
      • Optional emojiStatus?: TypeEmojiStatus
      • Optional usernames?: Api.Username[]
      • Optional storiesMaxId?: number
      • Optional color?: PeerColor
      • Optional profileColor?: PeerColor

    Returns User

Generated using TypeDoc