Raw.UserFull

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 undefined

    Whether you have blocked this user

  • phoneCallsAvailable : boolean or undefined

    Whether this user can make voip calls

  • phoneCallsPrivate : boolean or undefined

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

  • canPinMessage : boolean or undefined

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

  • hasScheduled : boolean or undefined

    Whether scheduled messages are available

  • videoCallsAvailable : boolean or undefined

    Whether the user can receive video calls

  • voiceMessagesForbidden : boolean or undefined

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

  • translationsDisabled : boolean or undefined

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

  • storiesPinnedAvailable : boolean or undefined

    Whether this user has some pinned stories.

  • blockedMyStoriesFrom : boolean or undefined

    Whether we’ve blocked this user, preventing them from seeing our stories.

  • wallpaperOverridden : boolean or undefined

    Whether 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 undefined

    If 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 undefined

    If 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 undefined

    Whether ads were re-enabled for the current account (only accessible to the currently logged-in user), see here for more info.

  • id : bigint

    User id

  • about : string or undefined

    Bio of the user

  • settings : Raw.TypePeerSettings

    Peer settings

  • personalPhoto : Raw.TypePhoto or undefined

    Personal profile photo, to be shown instead of profilePhoto.

  • profilePhoto : Raw.TypePhoto or undefined

    Profile photo

  • fallbackPhoto : Raw.TypePhoto or undefined

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

  • notifySettings : Raw.TypePeerNotifySettings

    Notification settings

  • botInfo : Raw.TypeBotInfo or undefined

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

  • pinnedMsgId : number or undefined

    Message id of the last pinned message

  • commonChatsCount : number

    Chats in common with this user

  • folderId : number or undefined

    Peer folder id, for more info click here

  • ttlPeriod : number or undefined

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

  • themeEmoticon : string or undefined

    Emoji associated with chat theme

  • privateForwardName : string or undefined

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

  • botGroupAdminRights : Raw.TypeChatAdminRights or undefined

    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.

  • botBroadcastAdminRights : Raw.TypeChatAdminRights or undefined

    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.

  • premiumGifts : Array of Raw.TypePremiumGiftOption or undefined

    Telegram premium subscriptions gift options

  • wallpaper : Raw.TypeWallPaper or undefined

    Wallpaper to use in the private chat with the user.

  • stories : Raw.TypePeerStories or undefined

    Active stories

  • businessWorkHours : Raw.TypeBusinessWorkHours or undefined

    Telegram business working hours.

  • businessLocation : Raw.TypeBusinessLocation or undefined

    Telegram business location.

  • businessGreetingMessage : Raw.TypeBusinessGreetingMessage or undefined

    Telegram business greeting message.

  • businessAwayMessage : Raw.TypeBusinessAwayMessage or undefined

    Telegram business away message.

  • businessIntro : Raw.TypeBusinessIntro or undefined

    Specifies a custom telegram business profile introduction.

  • birthday : Raw.TypeBirthday or undefined

    Contains info about the user’s birthday.

  • personalChannelId : bigint or undefined

    Id of the associated personal channel, that should be shown in the profile page.

  • personalChannelMessage : number or undefined

    Id of the latest message of the associated personal channel, that should be previewed in the profile page.