User

class pyrogram.api.types.User(*, id: int, is_self: bool = None, contact: bool = None, mutual_contact: bool = None, deleted: bool = None, bot: bool = None, bot_chat_history: bool = None, bot_nochats: bool = None, verified: bool = None, restricted: bool = None, min: bool = None, bot_inline_geo: bool = None, support: bool = None, access_hash: int = None, first_name: str = None, last_name: str = None, username: str = None, phone: str = None, photo=None, status=None, bot_info_version: int = None, restriction_reason: str = None, bot_inline_placeholder: str = None, lang_code: str = None)
ID

0x2e13f4c3

Parameters:
  • idint 32-bit
  • is_self (optional) – bool
  • contact (optional) – bool
  • mutual_contact (optional) – bool
  • deleted (optional) – bool
  • bot (optional) – bool
  • bot_chat_history (optional) – bool
  • bot_nochats (optional) – bool
  • verified (optional) – bool
  • restricted (optional) – bool
  • min (optional) – bool
  • bot_inline_geo (optional) – bool
  • support (optional) – bool
  • access_hash (optional) – int 64-bit
  • first_name (optional) – str
  • last_name (optional) – str
  • username (optional) – str
  • phone (optional) – str
  • photo (optional) – Either UserProfilePhotoEmpty or UserProfilePhoto
  • status (optional) – Either UserStatusEmpty, UserStatusOnline, UserStatusOffline, UserStatusRecently, UserStatusLastWeek or UserStatusLastMonth
  • bot_info_version (optional) – int 32-bit
  • restriction_reason (optional) – str
  • bot_inline_placeholder (optional) – str
  • lang_code (optional) – str

See also

This object can be returned by account.UpdateProfile, account.UpdateUsername, account.ChangePhone and users.GetUsers.