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>UserFull_

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

Extended user info

Constructors

new
UserFull_(params: { blocked?: true; phone_calls_available?: true; phone_calls_private?: true; can_pin_message?: true; has_scheduled?: true; video_calls_available?: true; voice_messages_forbidden?: true; translations_disabled?: true; stories_pinned_available?: true; blocked_my_stories_from?: true; wallpaper_overridden?: true; contact_require_premium?: true; read_dates_private?: true; id: bigint; about?: string; settings: enums.PeerSettings; personal_photo?: enums.Photo; profile_photo?: enums.Photo; fallback_photo?: enums.Photo; notify_settings: enums.PeerNotifySettings; bot_info?: enums.BotInfo; pinned_msg_id?: number; common_chats_count: number; folder_id?: number; ttl_period?: number; theme_emoticon?: string; private_forward_name?: string; bot_group_admin_rights?: enums.ChatAdminRights; bot_broadcast_admin_rights?: enums.ChatAdminRights; premium_gifts?: Array<enums.PremiumGiftOption>; wallpaper?: enums.WallPaper; stories?: enums.PeerStories; business_work_hours?: enums.BusinessWorkHours; business_location?: enums.BusinessLocation; business_greeting_message?: enums.BusinessGreetingMessage; business_away_message?: enums.BusinessAwayMessage; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
about: string

Bio of the user

optional
blocked: true

Whether you have blocked this user

optional
blocked_my_stories_from: true
optional
bot_broadcast_admin_rights: enums.ChatAdminRights

A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a channel, see here for more info on how to handle them ».

optional
bot_group_admin_rights: enums.ChatAdminRights

A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a group, see here for more info on how to handle them ».

optional
bot_info: enums.BotInfo

For bots, info about the bot (bot commands, etc)

optional
business_away_message: enums.BusinessAwayMessage
optional
business_greeting_message: enums.BusinessGreetingMessage
optional
business_location: enums.BusinessLocation
optional
business_work_hours: enums.BusinessWorkHours
optional
can_pin_message: true

Whether you can pin messages in the chat with this user, you can do this only for a chat with yourself

common_chats_count: number

Chats in common with this user

optional
contact_require_premium: true
optional
fallback_photo: enums.Photo

Fallback profile photo, displayed if no photo is present in profile_photo or personal_photo, due to privacy settings.

optional
has_scheduled: true

Whether scheduled messages are available

id: bigint

User ID

notify_settings: enums.PeerNotifySettings

Notification settings

optional
personal_photo: enums.Photo

Personal profile photo, to be shown instead of profile_photo.

optional
phone_calls_available: true

Whether this user can make VoIP calls

optional
phone_calls_private: true

Whether this user's privacy settings allow you to call them

optional
pinned_msg_id: number

Message ID of the last pinned message

optional
premium_gifts: Array<enums.PremiumGiftOption>

Telegram Premium subscriptions gift options

optional
private_forward_name: string

Anonymized text to be shown instead of the user's name on forwarded messages

optional
profile_photo: enums.Photo

Profile photo

optional
read_dates_private: true
settings: enums.PeerSettings

Peer settings

optional
stories: enums.PeerStories

Active stories »

optional
stories_pinned_available: true

Whether this user has some pinned stories.

optional
theme_emoticon: string

Emoji associated with chat theme

optional
translations_disabled: true

Whether the real-time chat translation popup should be hidden.

optional
ttl_period: number

Time To Live of all messages in this chat; once a message is this many seconds old, it must be deleted.

optional
video_calls_available: true

Whether the user can receive video calls

optional
voice_messages_forbidden: true

Whether this user doesn't allow sending voice messages in a private chat with them

optional
wallpaper: enums.WallPaper

Wallpaper to use in the private chat with the user.

optional
wallpaper_overridden: true

Whether the other user has chosen a custom wallpaper for us using messages.setChatWallPaper and the for_both flag, see here » for more info.

Static Properties

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