User
- class pyrogram.raw.types.User
Indicates info about a certain user
Constructor of
User.- Details:
Layer:
196ID:
4B46C37E
- Parameters:
id (
int64-bit) – ID of the useris_self (
bool, optional) – N/Acontact (
bool, optional) – Whether this user is a contactmutual_contact (
bool, optional) – Whether this user is a mutual contactdeleted (
bool, optional) – Whether the account of this user was deletedbot (
bool, optional) – Is this user a bot?bot_chat_history (
bool, optional) – Can the bot see all messages in groups?bot_nochats (
bool, optional) – Can the bot be added to groups?verified (
bool, optional) – Whether this user is verifiedrestricted (
bool, optional) – Access to this user must be restricted for the reason specified in restriction_reasonmin (
bool, optional) – See minbot_inline_geo (
bool, optional) – Whether the bot can request our geolocation in inline modesupport (
bool, optional) – Whether this is an official support userscam (
bool, optional) – This may be a scam userapply_min_photo (
bool, optional) – If set, the profile picture for this user should be refetchedfake (
bool, optional) – If set, this user was reported by many users as a fake or scam user: be careful when interacting with them.bot_attach_menu (
bool, optional) – Whether this bot offers an attachment menu web apppremium (
bool, optional) – Whether this user is a Telegram Premium userattach_menu_enabled (
bool, optional) – Whether we installed the attachment menu web app offered by this botbot_can_edit (
bool, optional) – Whether we can edit the profile picture, name, about text and description of this bot because we own it.close_friend (
bool, optional) – Whether we marked this user as a close friend, see here » for more infostories_hidden (
bool, optional) – Whether we have hidden » all active stories of this user.stories_unavailable (
bool, optional) – No stories from this user are visible.contact_require_premium (
bool, optional)bot_business (
bool, optional)bot_has_main_app (
bool, optional) – N/Aaccess_hash (
int64-bit, optional) – Access hash of the userfirst_name (
str, optional) – First namelast_name (
str, optional) – Last nameusername (
str, optional) – Usernamephone (
str, optional) – Phone numberphoto (
UserProfilePhoto, optional) – Profile picture of userstatus (
UserStatus, optional) – Online status of userbot_info_version (
int32-bit, optional) – Version of the bot_info field in userFull, incremented every time it changesrestriction_reason (List of
RestrictionReason, optional) – Contains the reason why access to this user must be restricted.bot_inline_placeholder (
str, optional) – Inline placeholder for this inline botlang_code (
str, optional) – Language code of the useremoji_status (
EmojiStatus, optional) – Emoji statususernames (List of
Username, optional) – Additional usernamesstories_max_id (
int32-bit, optional) – ID of the maximum read story.color (
PeerColor, optional) – The user’s accent color.profile_color (
PeerColor, optional) – The user’s profile color.bot_active_users (
int32-bit, optional) – N/Abot_verification_icon (
int64-bit, optional) – N/A
- Functions:
This object can be returned by 6 functions.
Updates user profile.
Changes username for the current user.
Change the phone number of the current account
Returns basic user info according to their identifiers.
Obtain user info from a temporary profile link.
Telegram API function.