UserFull#

class pyrogram.raw.types.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).

Constructor of UserFull.

Details:
  • Layer: 220

  • ID: A02BC13E

Parameters:
id (int 64-bit):

User ID

settings (PeerSettings):

Peer settings

notify_settings (PeerNotifySettings):

Notification settings

common_chats_count (int 32-bit):

Chats in common with this user

blocked (bool, optional):

Whether you have blocked this user

phone_calls_available (bool, optional):

Whether this user can make VoIP calls

phone_calls_private (bool, optional):

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

can_pin_message (bool, optional):

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

has_scheduled (bool, optional):

Whether scheduled messages are available

video_calls_available (bool, optional):

Whether the user can receive video calls

voice_messages_forbidden (bool, optional):

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

translations_disabled (bool, optional):

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

stories_pinned_available (bool, optional):

Whether this user has some pinned stories.

blocked_my_stories_from (bool, optional):

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

wallpaper_overridden (bool, optional):

Whether 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_premium (bool, optional):

If 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_private (bool, optional):

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.hide_read_marks flag.

sponsored_enabled (bool, optional):

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

can_view_revenue (bool, optional):

If set, this user can view ad revenue statistics » for this bot.

bot_can_manage_emoji_status (bool, optional):

If set, this is a bot that can change our emoji status »

display_gifts_button (bool, optional):

If 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 ».

about (str, optional):

Bio of the user

personal_photo (Photo, optional):

Personal profile photo, to be shown instead of profile_photo.

profile_photo (Photo, optional):

Profile photo

fallback_photo (Photo, optional):

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

bot_info (BotInfo, optional):

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

pinned_msg_id (int 32-bit, optional):

Message ID of the last pinned message

folder_id (int 32-bit, optional):

Peer folder ID, for more info click here

ttl_period (int 32-bit, optional):

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

theme (ChatTheme, optional):

The chat theme associated with this user ».

private_forward_name (str, optional):

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

bot_group_admin_rights (ChatAdminRights, optional):

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

bot_broadcast_admin_rights (ChatAdminRights, optional):

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

wallpaper (WallPaper, optional):

Wallpaper to use in the private chat with the user.

stories (PeerStories, optional):

Active stories »

business_work_hours (BusinessWorkHours, optional):

Telegram Business working hours ».

business_location (BusinessLocation, optional):

Telegram Business location ».

business_greeting_message (BusinessGreetingMessage, optional):

Telegram Business greeting message ».

business_away_message (BusinessAwayMessage, optional):

Telegram Business away message ».

business_intro (BusinessIntro, optional):

Specifies a custom Telegram Business profile introduction ».

birthday (Birthday, optional):

Contains info about the user’s birthday ».

personal_channel_id (int 64-bit, optional):

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

personal_channel_message (int 32-bit, optional):

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

stargifts_count (int 32-bit, optional):

Number of gifts the user has chosen to display on their profile

starref_program (StarRefProgram, optional):

This bot has an active referral program »

bot_verification (BotVerification, optional):

Describes a bot verification icon ».

send_paid_messages_stars (int 64-bit, optional):

If 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_gifts (DisallowedGiftsSettings, optional):

Disallows the reception of specific gift types.

stars_rating (StarsRating, optional):

The user’s star rating.

stars_my_pending_rating (StarsRating, optional):

Our pending star rating, only visible for ourselves.

stars_my_pending_rating_date (int 32-bit, optional):

When the pending star rating will be applied, only visible for ourselves.

main_tab (ProfileTab, optional):

The main tab for the user’s profile, see here » for more info.

saved_music (Document, optional):

The first song on the music tab of the profile, see here » for more info on the music profile tab.

note (TextWithEntities, optional):

N/A