MadelineProtoDocs/docs/API_docs/constructors/userProfilePhoto.md
2024-05-01 14:53:46 +02:00

1.3 KiB

title description nav_exclude image
userProfilePhoto User profile photo. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: userProfilePhoto

Back to constructors index

User profile photo.

Attributes:

Name Type Required Description
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).
photo_id long Yes Identifier of the respective photo
stripped_thumb bytes Optional Stripped thumbnail
dc_id int Yes DC ID where the photo is stored

Type: UserProfilePhoto

Example:

$userProfilePhoto = ['_' => 'userProfilePhoto', 'has_video' => Bool, 'personal' => Bool, 'photo_id' => long, 'stripped_thumb' => 'bytes', 'dc_id' => int];