Skip to main content

userFull

Extended user info When updating the local peer database », all fields from the newly received constructor take priority over the old constructor cached locally (including by removing fields that aren't set in the new constructor).

type tg.UserFull struct { /* ... */ }

Fields

NameTypeRequiredDescription
BlockedboolWhether you have blocked this user
PhoneCallsAvailableboolWhether this user can make VoIP calls
PhoneCallsPrivateboolWhether this user's privacy settings allow you to call them
CanPinMessageboolWhether you can pin messages in the chat with this user, you can do this only for a chat with yourself
HasScheduledboolWhether scheduled messages are available
VideoCallsAvailableboolWhether the user can receive video calls
VoiceMessagesForbiddenboolWhether this user doesn't allow sending voice messages in a private chat with them
TranslationsDisabledboolWhether the real-time chat translation popup should be hidden.
StoriesPinnedAvailableboolWhether this user has some pinned stories.
BlockedMyStoriesFromboolWhether we've blocked this user, preventing them from seeing our stories ».
WallpaperOverriddenboolWhether the other user has chosen a custom wallpaper for us using messages setChatWallPaper and the for_both flag, see here » for more info.
ContactRequirePremiumboolIf set, we cannot write to this user: subscribe to Telegram Premium to get permission to write to this user. To set this flag for ourselves invoke account setGlobalPrivacySettings, setting the settings.new_noncontact_peers_require_premium flag, see here » for more info.
ReadDatesPrivateboolIf 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 hide_read_marks flag.
Flags2bin.FieldsyesFlags, see TL conditional fields
SponsoredEnabledboolWhether ads were re-enabled for the current account (only accessible to the currently logged-in user), see here » for more info.
CanViewRevenueboolIf set, this user can view ad revenue statistics » for this bot.
BotCanManageEmojiStatusboolIf set, this is a bot that can change our emoji status »
DisplayGiftsButtonboolIf this flag is set for both us and another user (changed through globalPrivacySettings), a gift button should always be displayed in the text field in private chats with the other user: once clicked, the gift UI should be displayed, offering the user options to gift Telegram Premium » subscriptions or Telegram Gifts ».
NoforwardsMyEnabledboolIf set, content protection » was enabled in this private chat by us.
NoforwardsPeerEnabledboolIf set, content protection » was enabled in this private chat by this user.
UnofficialSecurityRiskboolUnofficialSecurityRisk field of UserFull.
IDint64yesUser ID
AboutstringBio of the user
SettingsPeerSettingsyesPeer settings
PersonalPhotoPhotoClassPersonal profile photo, to be shown instead of profile_photo.
ProfilePhotoPhotoClassProfile photo
FallbackPhotoPhotoClassFallback profile photo, displayed if no photo is present in profile_photo or personal_photo, due to privacy settings.
NotifySettingsPeerNotifySettingsyesNotification settings
BotInfoBotInfoFor bots, info about the bot (bot commands, etc)
PinnedMsgIDintMessage ID of the last pinned message
CommonChatsCountintyesChats in common with this user
FolderIDintPeer folder ID, for more info click here
TTLPeriodintTime To Live of all messages in this chat; once a message is this many seconds old, it must be deleted.
ThemeChatThemeClassThe chat theme associated with this user ».
PrivateForwardNamestringAnonymized text to be shown instead of the user's name on forwarded messages
BotGroupAdminRightsChatAdminRightsA 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 ».
BotBroadcastAdminRightsChatAdminRightsA 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 ».
WallpaperWallPaperClassWallpaper to use in the private chat with the user.
StoriesPeerStoriesActive stories »
BusinessWorkHoursBusinessWorkHoursTelegram Business working hours ».
BusinessLocationBusinessLocationTelegram Business location ».
BusinessGreetingMessageBusinessGreetingMessageTelegram Business greeting message ».
BusinessAwayMessageBusinessAwayMessageTelegram Business away message ».
BusinessIntroBusinessIntroSpecifies a custom Telegram Business profile introduction ».
BirthdayBirthdayContains info about the user's birthday ».
PersonalChannelIDint64ID of the associated personal channel », that should be shown in the profile page.
PersonalChannelMessageintID of the latest message of the associated personal channel », that should be previewed in the profile page.
StargiftsCountintNumber of gifts the user has chosen to display on their profile
StarrefProgramStarRefProgramThis bot has an active referral program »
BotVerificationBotVerificationDescribes a bot verification icon ».
SendPaidMessagesStarsint64If set and bigger than 0, this user has enabled paid messages » and we must pay the specified amount of Stars to send messages to them, see here » for the full flow. If set and equal to 0, the user requires payment in general but we were exempted from paying for any of the reasons specified in the docs ».
DisallowedGiftsDisallowedGiftsSettingsDisallows the reception of specific gift types.
StarsRatingStarsRatingThe user's star rating.
StarsMyPendingRatingStarsRatingOur pending star rating, only visible for ourselves.
StarsMyPendingRatingDateintWhen the pending star rating will be applied, only visible for ourselves.
MainTabProfileTabClassThe main tab for the user's profile, see here » for more info.
SavedMusicDocumentClassThe first song on the music tab of the profile, see here » for more info on the music profile tab.
NoteTextWithEntitiesA private note for this contact, only visible to us; see here » for more info on contact notes.
BotManagerIDint64BotManagerID field of UserFull.

References