Installs a previously uploaded photo as a profile photo.
userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto;
userProfilePhoto#d559d8c8 photo_id:long photo_small:FileLocation photo_big:FileLocation = UserProfilePhoto;
---functions---
photos.updateProfilePhoto#eef579a0 id:InputPhoto crop:InputPhotoCrop = UserProfilePhoto;
Parameters
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. |