photos.updateProfilePhoto
Installs a previously uploaded photo as a profile photo.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
fallback | true | Nein | 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 | Nein | Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user. |
id | InputPhoto | Ja | Input photo |
Antworten
photos.Photo
MTProto RPC
- 400 · ALBUM_PHOTOS_TOO_MANY – Sie haben zu viele Profilfotos hochgeladen. Löschen Sie einige, bevor Sie es erneut versuchen.
- 400 · BOT_FALLBACK_UNSUPPORTED – Das Fallback-Flag kann nicht für Bots gesetzt werden.
- 400 · FILE_PARTS_INVALID – Die Anzahl der Dateiteile ist ungültig.
- 400 · IMAGE_PROCESS_FAILED – Fehler bei der Bildverarbeitung.
- 400 · LOCATION_INVALID – Der angegebene Standort ist ungültig.
- 400 · PHOTO_CROP_SIZE_SMALL – Foto ist zu klein.
- 400 · PHOTO_EXT_INVALID — Die Erweiterung des Fotos ist ungültig.
- 400 · PHOTO_ID_INVALID – Lichtbildausweis ungültig.