Installs a previously uploaded photo as a profile photo.

userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto;
userProfilePhoto#ecd75d8c photo_id:long photo_small:FileLocation photo_big:FileLocation dc_id:int = UserProfilePhoto;
photos.updateProfilePhoto#f0bb5152 id:InputPhoto = UserProfilePhoto;


Name Type Description
id InputPhoto Input photo



Possible errors

Code Type Description
400 BOT_METHOD_INVALID This method can't be used by a bot
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