Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>User_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class User_
extends _User_
import { User_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Indicates info about a certain user

Constructors

new
User_(params: { self?: true; contact?: true; mutual_contact?: true; deleted?: true; bot?: true; bot_chat_history?: true; bot_nochats?: true; verified?: true; restricted?: true; min?: true; bot_inline_geo?: true; support?: true; scam?: true; apply_min_photo?: true; fake?: true; bot_attach_menu?: true; premium?: true; attach_menu_enabled?: true; bot_can_edit?: true; close_friend?: true; stories_hidden?: true; stories_unavailable?: true; contact_require_premium?: true; id: bigint; access_hash?: bigint; first_name?: string; last_name?: string; username?: string; phone?: string; photo?: enums.UserProfilePhoto; status?: enums.UserStatus; bot_info_version?: number; restriction_reason?: Array<enums.RestrictionReason>; bot_inline_placeholder?: string; lang_code?: string; emoji_status?: enums.EmojiStatus; usernames?: Array<enums.Username>; stories_max_id?: number; color?: enums.PeerColor; profile_color?: enums.PeerColor; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
access_hash: bigint

Access hash of the user

optional
apply_min_photo: true

If set, the profile picture for this user should be refetched

optional
attach_menu_enabled: true

Whether we installed the attachment menu web app offered by this bot

optional
bot: true

Is this user a bot?

optional
bot_attach_menu: true

Whether this bot offers an attachment menu web app

optional
bot_can_edit: true

Whether we can edit the profile picture, name, about text and description of this bot because we own it.

optional
bot_chat_history: true

Can the bot see all messages in groups?

optional
bot_info_version: number

Version of the bot_info field in userFull, incremented every time it changes

optional
bot_inline_geo: true

Whether the bot can request our geolocation in inline mode

optional
bot_inline_placeholder: string

Inline placeholder for this inline bot

optional
bot_nochats: true

Can the bot be added to groups?

optional
close_friend: true

Whether we marked this user as a close friend, see here » for more info

optional
color: enums.PeerColor

The user's accent color.

optional
contact: true

Whether this user is a contact

optional
contact_require_premium: true
optional
deleted: true

Whether the account of this user was deleted

optional
emoji_status: enums.EmojiStatus
optional
fake: true

If set, this user was reported by many users as a fake or scam user: be careful when interacting with them.

optional
first_name: string

First name

id: bigint

ID of the user

optional
lang_code: string

Language code of the user

optional
last_name: string

Last name

optional
min: true

See min

optional
mutual_contact: true

Whether this user is a mutual contact

optional
phone: string

Phone number

optional
photo: enums.UserProfilePhoto

Profile picture of user

optional
premium: true

Whether this user is a Telegram Premium user

optional
profile_color: enums.PeerColor

The user's profile color.

optional
restricted: true

Access to this user must be restricted for the reason specified in restriction_reason

optional
restriction_reason: Array<enums.RestrictionReason>

Contains the reason why access to this user must be restricted.

optional
scam: true

This may be a scam user

optional
self: true

Whether this user indicates the currently logged in user

optional
status: enums.UserStatus

Online status of user

optional
stories_hidden: true

Whether we have hidden » all active stories of this user.

optional
stories_max_id: number

ID of the maximum read story.

optional
stories_unavailable: true

No stories from this user are visible.

optional
support: true

Whether this is an official support user

optional
username: string

Username

optional
usernames: Array<enums.Username>

Additional usernames

optional
verified: true

Whether this user is verified

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc