MadelineProtoDocs/old_docs/API_docs_v35/constructors/updateUserPhoto.md
2020-06-16 17:50:25 +02:00

1.2 KiB

title description image
updateUserPhoto Change of contact's profile photo. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateUserPhoto

Back to constructors index

Change of contact's profile photo.

Attributes:

Name Type Required Description
user_id int Yes User identifier
date int Yes Date of photo update.
Parameter was added in second layer.
photo UserProfilePhoto Optional New profile photo
previous Bool Yes (boolTrue), if one of the previously used photos is set a profile photo.
Parameter was added in second layer.

Type: Update

Example:

$updateUserPhoto = ['_' => 'updateUserPhoto', 'user_id' => int, 'date' => int, 'photo' => UserProfilePhoto, 'previous' => Bool];

Or, if you're into Lua:

updateUserPhoto={_='updateUserPhoto', user_id=int, date=int, photo=UserProfilePhoto, previous=Bool}