telegram api method · layer 229 · #09e82039
photos.updateProfilePhoto
Installs a previously uploaded photo as a profile photo.
definition
photos.updateProfilePhoto#9e82039 flags:# fallback:flags.0?true bot:flags.1?InputUser id:InputPhoto = photos.Photo;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
fallback | true | If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings. |
bot | InputUser | Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user. |
id | InputPhoto | Input photo |
returns
errors (9)
| code | error | description |
|---|---|---|
| 400 | ALBUM_PHOTOS_TOO_MANY | You have uploaded too many profile photos, delete some before retrying. |
| 400 | BOT_FALLBACK_UNSUPPORTED | The fallback flag can't be set for bots. |
| 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. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 2–229 · constructor id changed 4×
| id | layers |
|---|---|
| #eef579a0 | 2–46 |
| #f0bb5152 | 62–115 |
| #72d4742c | 116–150 |
| #1c3d5956 | 151–156 |
| #09e82039 | 158–229 |