ChatPPrivate

Properties

id: number

The identifier of the chat.

type: "private"
DISCRIMINATOR
color: number

Identifier of a color that can be displayed instead of the chat’s photo.

photo?: ChatPhoto

The chat’s photo.

isBot: boolean

Whether this is a bot’s chat.

firstName: string

The first name of the user.

lastName?: string

The last name of the user.

username?: string

The user’s main username.

phoneNumber?: string

The user’s phone number.

also?: string[]

The user’s additional usernames.

status?: UserStatus

The user’s status.

emojiStatus?: EmojiStatus

The user’s emoji status.

isSelf: boolean

Whether the user is the current user.

isDeleted: boolean

Whether the user has been deleted.

isContact: boolean

Whether the user is a contact.

isMutualContact: boolean

Whether the user is a mutual contact.

isCloseFriend: boolean

Whether the user is a close friend.

languageCode?: string

The user’s IETF language tag.

isScam: boolean

Whether the user has been identified as scam.

isFake: boolean

Whether the user has been identified as an impersonator.

isPremium: boolean

Whether the user is subscribed to Telegram Premium.

isVerified: boolean

Whether the user has been verified.

isSupport: boolean

Whether the user is official support.

isRestricted: boolean

Whether the user has been restricted.

restrictionReason?: RestrictionReason[]

The reason why the user has been restricted.

isAddedToAttachmentMenu?: boolean

Whether the user is a bot that has been added to the attachment menu by the current user.

hasMainMiniApp?: boolean

Whether the user is a bot that has been added to the attachment menu by the current user.