User

class pyrogram.api.types.User
LAYER

100

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

  • scam (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.