UserProfilePhoto

class pyrogram.raw.types.UserProfilePhoto

User profile photo.

Constructor of UserProfilePhoto.

Details:
  • Layer: 223

  • ID: 82D1F706

Parameters:
  • photo_id (int 64-bit) – Identifier of the respective photo

  • dc_id (int 32-bit) – DC ID where the photo is stored

  • has_video (bool, optional) – Whether an animated profile picture is available for this user

  • personal (bool, optional) – Whether this profile photo is only visible to us (i.e. it was set using photos.uploadContactProfilePhoto).

  • stripped_thumb (bytes, optional) – Stripped thumbnail

TL Schema

userProfilePhoto#82d1f706
flags:#
has_video:flags.0?true
personal:flags.2?true
photo_id:long
stripped_thumb:flags.1?bytes
dc_id:int

= UserProfilePhoto

Parameter Tree

UserProfilePhoto
├── has_videotrue (optional)
├── personaltrue (optional)
├── photo_idlong
├── stripped_thumbbytes (optional)
└── dc_idint

Example

UserProfilePhoto(
    photo_id=0,
    dc_id=0,
)