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).

Layer 223

userFull#a02bc13e 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 can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true noforwards_my_enabled:flags2.23?true noforwards_peer_enabled:flags2.24?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:flags.15?ChatTheme private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights 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 stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating stars_my_pending_rating:flags2.18?StarsRating stars_my_pending_rating_date:flags2.18?int main_tab:flags2.20?ProfileTab saved_music:flags2.21?Document note:flags2.22?TextWithEntities = UserFull;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
blockedflags.0?trueWhether you have blocked this user
phone_calls_availableflags.4?trueWhether this user can make VoIP calls
phone_calls_privateflags.5?trueWhether this user's privacy settings allow you to call them
can_pin_messageflags.7?trueWhether you can pin messages in the chat with this user, you can do this only for a chat with yourself
has_scheduledflags.12?trueWhether scheduled messages are available
video_calls_availableflags.13?trueWhether the user can receive video calls
voice_messages_forbiddenflags.20?trueWhether this user doesn't allow sending voice messages in a private chat with them
translations_disabledflags.23?trueWhether the real-time chat translation popup should be hidden.
stories_pinned_availableflags.26?trueWhether this user has some pinned stories.
blocked_my_stories_fromflags.27?trueWhether we've blocked this user, preventing them from seeing our stories ».
wallpaper_overriddenflags.28?trueWhether the other user has chosen a custom wallpaper for us using messages.setChatWallPaper and the for_both flag, see here » for more info.
contact_require_premiumflags.29?trueIf 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.
read_dates_privateflags.30?trueIf 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.
flags2#Flags, see TL conditional fields
sponsored_enabledflags2.7?trueWhether ads were re-enabled for the current account (only accessible to the currently logged-in user), see here » for more info.
can_view_revenueflags2.9?trueIf set, this user can view ad revenue statistics » for this bot.
bot_can_manage_emoji_statusflags2.10?trueIf set, this is a bot that can change our emoji status »
display_gifts_buttonflags2.16?trueIf 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 ».
noforwards_my_enabledflags2.23?trueIf set, content protection » was enabled in this private chat by us.
noforwards_peer_enabledflags2.24?trueIf set, content protection » was enabled in this private chat by this user.
unofficial_security_riskflags2.26?trueIf set, this user uses an unofficial Telegram client, and messages sent to them may be less secure; clients should display a warning in the user's profile.
idlongUser ID
aboutflags.1?stringBio of the user
settingsPeerSettingsPeer settings
personal_photoflags.21?PhotoPersonal profile photo, to be shown instead of profile_photo.
profile_photoflags.2?PhotoProfile photo
fallback_photoflags.22?PhotoFallback profile photo, displayed if no photo is present in profile_photo or personal_photo, due to privacy settings.
notify_settingsPeerNotifySettingsNotification settings
bot_infoflags.3?BotInfoFor bots, info about the bot (bot commands, etc)
pinned_msg_idflags.6?intMessage ID of the last pinned message
common_chats_countintChats in common with this user
folder_idflags.11?intPeer folder ID, for more info click here
ttl_periodflags.14?intTime To Live of all messages in this chat; once a message is this many seconds old, it must be deleted.
themeflags.15?ChatThemeThe chat theme associated with this user ».
private_forward_nameflags.16?stringAnonymized text to be shown instead of the user's name on forwarded messages
bot_group_admin_rightsflags.17?ChatAdminRightsA 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 ».
bot_broadcast_admin_rightsflags.18?ChatAdminRightsA 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 ».
wallpaperflags.24?WallPaperWallpaper to use in the private chat with the user.
storiesflags.25?PeerStoriesActive stories »
business_work_hoursflags2.0?BusinessWorkHoursTelegram Business working hours ».
business_locationflags2.1?BusinessLocationTelegram Business location ».
business_greeting_messageflags2.2?BusinessGreetingMessageTelegram Business greeting message ».
business_away_messageflags2.3?BusinessAwayMessageTelegram Business away message ».
business_introflags2.4?BusinessIntroSpecifies a custom Telegram Business profile introduction ».
birthdayflags2.5?BirthdayContains info about the user's birthday ».
personal_channel_idflags2.6?longID of the associated personal channel », that should be shown in the profile page.
personal_channel_messageflags2.6?intID of the latest message of the associated personal channel », that should be previewed in the profile page.
stargifts_countflags2.8?intNumber of gifts the user has chosen to display on their profile
starref_programflags2.11?StarRefProgramThis bot has an active referral program »
bot_verificationflags2.12?BotVerificationDescribes a bot verification icon ».
send_paid_messages_starsflags2.14?longIf 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 ».
disallowed_giftsflags2.15?DisallowedGiftsSettingsDisallows the reception of specific gift types.
stars_ratingflags2.17?StarsRatingThe user's star rating.
stars_my_pending_ratingflags2.18?StarsRatingOur pending star rating, only visible for ourselves.
stars_my_pending_rating_dateflags2.18?intWhen the pending star rating will be applied, only visible for ourselves.
main_tabflags2.20?ProfileTabThe main tab for the user's profile, see here » for more info.
saved_musicflags2.21?DocumentThe first song on the music tab of the profile, see here » for more info on the music profile tab.
noteflags2.22?TextWithEntitiesA private note for this contact, only visible to us; see here » for more info on contact notes.
bot_manager_idflags2.25?longIf this user is a managed bot », the ID of the user or manager bot that manages it.

Type #

UserFull

Scheduled messages #

Telegram allows scheduling messages

Message translation #

Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.

Telegram Stories #

Telegram users and channels can easily post and view stories through the API.

Blocked users #

Working with the blocklist.

messages.setChatWallPaper #

Set a custom wallpaper » in a specific private chat with another user.

Chat wallpapers #

Telegram apps support generating, sharing and synchronizing chat backgrounds.

Telegram Premium #

Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.

account.setGlobalPrivacySettings #

Set global privacy settings

Privacy settings #

Telegram allows users to specify granular privacy settings, choosing which users can or can't interact with them in certain ways.

messages.getOutboxReadDate #

Get the exact read date of one of our messages, sent to a private chat with another user.

Can be only done for private outgoing messages not older than appConfig.pm_read_date_expire_period ».

If the peer's userFull.read_dates_private flag is set, we will not be able to fetch the exact read date of messages we send to them, and a USER_PRIVACY_RESTRICTED RPC error will be emitted.
The exact read date of messages might still be unavailable for other reasons, see here » for more info.
To set userFull.read_dates_private for ourselves invoke account.setGlobalPrivacySettings, setting the settings.hide_read_marks flag.

Telegram Business #

Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.

Channel and bot ad revenue #

Telegram has one of the most generous reward systems in the history of social media. Telegram channel and bot owners can now receive 50% of the revenue from ads displayed in their channels and bots. This page describes the methods used to withdraw channel/bot ad revenue, as well as view detailed revenue stats.

Emoji status #

Telegram allows users to set an emoticon or a custom emoji as status, to show next to their name in chats and profiles.

globalPrivacySettings #

Global privacy settings

Telegram Gifts #

Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.

Content protection #

Users and bots who want to keep their messages private, as well as Group and Channel owners who want to keep their content members-only can enable content protection, which prevents screenshots, copying, disables message forwards and limits the ability to save media from posts.

Pinned messages #

Telegram allows pinning multiple messages on top of a specific chat.

Dialog folders #

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

Telegram themes #

Telegram apps support generating, sharing and synchronizing app themes.

Admin, banned, default rights #

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.

User profiles #

Telegram offers many customization options for your profile!

Channels, supergroups, gigagroups and basic groups #

How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.

Affiliate programs #

Developers can open affiliate programs for their mini app – allowing content creators, other mini app developers and any Telegram user to promote it and earn commissions on purchases made by people they referred.

Third-party verification #

To further improve transparency on Telegram, official third-party services are able to assign extra verification icons to user accounts and chats — in order to prevent scams and reduce misinformation.

Telegram Stars can be used to pay for sending messages to users, supergroups and channels that have configured paid messages, requiring a payment for every message sent to them.

Telegram Stars #

Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.

Contact list #

Working with contacts.

Managed bots #

Users can create managed bots (which are controlled by a specific manager bot) directly through the MTProto API, without interacting with @BotFather.

Peer database #

Many constructors in the API need to be stored in a local database upon reception and should only ever be updated reactively (passively) when received via updates or by other means (as specified in the documentation), to avoid overloading the server by continuously requesting changes for the same unchanged information.