photos.updateProfilePhoto

Installs a previously uploaded photo as a profile photo.

photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;
---functions---
photos.updateProfilePhoto#72d4742c id:InputPhoto = photos.Photo;

Parameters

Name Type Description
id InputPhoto Input photo

Result

UserProfilePhoto

Possible errors

Code Type Description
400 ALBUM_PHOTOS_TOO_MANY You have uploaded too many profile photos, delete some before retrying.
400 FILE_PARTS_INVALID The number of file parts is invalid.
400 IMAGE_PROCESS_FAILED Failure while processing image.
400 LOCATION_INVALID The provided location is invalid.
400 PHOTO_CROP_SIZE_SMALL Photo is too small.
400 PHOTO_EXT_INVALID The extension of the photo is invalid.
400 PHOTO_ID_INVALID Photo ID invalid.