MadelineProtoDocs/old_docs/API_docs_v65/constructors/updateUserPhoto.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.1 KiB

title description image
updateUserPhoto Update user photo https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateUserPhoto

Back to constructors index

Update user photo

Attributes:

Name Type Required Description
user_id int Yes User ID
date int Yes Date
photo UserProfilePhoto Optional Photo
previous Bool Yes Previous?

Type: Update

Example:

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

PWRTelegram json-encoded version:

{"_": "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}