Raw.UserFull
Extended user info
userFull#cc997720 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector<PremiumGiftOption> wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int = UserFull;
export namespace Raw {
export class UserFull {
constructor(params: {
blocked?: boolean;
phoneCallsAvailable?: boolean;
phoneCallsPrivate?: boolean;
canPinMessage?: boolean;
hasScheduled?: boolean;
videoCallsAvailable?: boolean;
voiceMessagesForbidden?: boolean;
translationsDisabled?: boolean;
storiesPinnedAvailable?: boolean;
blockedMyStoriesFrom?: boolean;
wallpaperOverridden?: boolean;
contactRequirePremium?: boolean;
readDatesPrivate?: boolean;
sponsoredEnabled?: boolean;
id: bigint;
about?: string;
settings: Raw.TypePeerSettings;
personalPhoto?: Raw.TypePhoto;
profilePhoto?: Raw.TypePhoto;
fallbackPhoto?: Raw.TypePhoto;
notifySettings: Raw.TypePeerNotifySettings;
botInfo?: Raw.TypeBotInfo;
pinnedMsgId?: number;
commonChatsCount: number;
folderId?: number;
ttlPeriod?: number;
themeEmoticon?: string;
privateForwardName?: string;
botGroupAdminRights?: Raw.TypeChatAdminRights;
botBroadcastAdminRights?: Raw.TypeChatAdminRights;
premiumGifts?: Array<Raw.TypePremiumGiftOption>;
wallpaper?: Raw.TypeWallPaper;
stories?: Raw.TypePeerStories;
businessWorkHours?: Raw.TypeBusinessWorkHours;
businessLocation?: Raw.TypeBusinessLocation;
businessGreetingMessage?: Raw.TypeBusinessGreetingMessage;
businessAwayMessage?: Raw.TypeBusinessAwayMessage;
businessIntro?: Raw.TypeBusinessIntro;
birthday?: Raw.TypeBirthday;
personalChannelId?: bigint;
personalChannelMessage?: number;
}) {}
}
}
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xcc997720
Property
blocked
: boolean or undefinedWhether you have blocked this user
phoneCallsAvailable
: boolean or undefinedWhether this user can make voip calls
phoneCallsPrivate
: boolean or undefinedWhether this user’s privacy settings allow you to call them
canPinMessage
: boolean or undefinedWhether you can pin messages in the chat with this user, you can do this only for a chat with yourself
hasScheduled
: boolean or undefinedWhether scheduled messages are available
videoCallsAvailable
: boolean or undefinedWhether the user can receive video calls
voiceMessagesForbidden
: boolean or undefinedWhether this user doesn’t allow sending voice messages in a private chat with them
translationsDisabled
: boolean or undefinedWhether the real-time chat translation popup should be hidden.
storiesPinnedAvailable
: boolean or undefinedWhether this user has some pinned stories.
blockedMyStoriesFrom
: boolean or undefinedWhether we’ve blocked this user, preventing them from seeing our stories.
wallpaperOverridden
: boolean or undefinedWhether the other user has chosen a custom wallpaper for us using messages.setchatwallpaper and the forBoth flag, see here for more info.
contactRequirePremium
: boolean or undefinedIf set, we can only write to this user if they have already sent some messages to us, if we are subscribed to telegram premium, or if they’re a mutual contact (user.mutualContact). all the secondary conditions listed above must be checked separately to verify whether we can still write to the user, even if this flag is set (i.e. a mutual contact will have this flag set even if we can still write to them, and so on…); to avoid doing these extra checks if we haven’t yet cached all the required information (for example while displaying the chat list in the sharing ui) the users.getispremiumrequiredtocontact method may be invoked instead, passing the list of users currently visible in the ui, returning a list of booleans that directly specify whether we can or cannot write to each user. to set this flag for ourselves invoke account.setglobalprivacysettings, setting the settings.newNoncontactPeersRequirePremium flag.
readDatesPrivate
: boolean or undefinedIf set, we cannot fetch the exact read date of messages we send to this user using messages.getoutboxreaddate. the exact read date of messages might still be unavailable for other reasons, see here for more info. to set this flag for ourselves invoke account.setglobalprivacysettings, setting the settings.hideReadMarks flag.
sponsoredEnabled
: boolean or undefinedWhether ads were re-enabled for the current account (only accessible to the currently logged-in user), see here for more info.
id
: bigintUser id
about
: string or undefinedBio of the user
settings
: Raw.TypePeerSettingsPeer settings
personalPhoto
: Raw.TypePhoto or undefinedPersonal profile photo, to be shown instead of profilePhoto.
profilePhoto
: Raw.TypePhoto or undefinedProfile photo
fallbackPhoto
: Raw.TypePhoto or undefinedFallback profile photo, displayed if no photo is present in profilePhoto or personalPhoto, due to privacy settings.
notifySettings
: Raw.TypePeerNotifySettingsNotification settings
botInfo
: Raw.TypeBotInfo or undefinedFor bots, info about the bot (bot commands, etc)
pinnedMsgId
: number or undefinedMessage id of the last pinned message
commonChatsCount
: numberChats in common with this user
folderId
: number or undefinedPeer folder id, for more info click here
ttlPeriod
: number or undefinedTime to live of all messages in this chat; once a message is this many seconds old, it must be deleted.
themeEmoticon
: string or undefinedEmoji associated with chat theme
privateForwardName
: string or undefinedAnonymized text to be shown instead of the user’s name on forwarded messages
botGroupAdminRights
: Raw.TypeChatAdminRights or undefinedA 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.
botBroadcastAdminRights
: Raw.TypeChatAdminRights or undefinedA 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.
premiumGifts
: Array of Raw.TypePremiumGiftOption or undefinedTelegram premium subscriptions gift options
wallpaper
: Raw.TypeWallPaper or undefinedWallpaper to use in the private chat with the user.
stories
: Raw.TypePeerStories or undefinedActive stories
businessWorkHours
: Raw.TypeBusinessWorkHours or undefinedTelegram business working hours.
businessLocation
: Raw.TypeBusinessLocation or undefinedTelegram business location.
businessGreetingMessage
: Raw.TypeBusinessGreetingMessage or undefinedTelegram business greeting message.
businessAwayMessage
: Raw.TypeBusinessAwayMessage or undefinedTelegram business away message.
businessIntro
: Raw.TypeBusinessIntro or undefinedSpecifies a custom telegram business profile introduction.
birthday
: Raw.TypeBirthday or undefinedContains info about the user’s birthday.
personalChannelId
: bigint or undefinedId of the associated personal channel, that should be shown in the profile page.
personalChannelMessage
: number or undefinedId of the latest message of the associated personal channel, that should be previewed in the profile page.