photos.uploadProfilePhoto
Updates current user 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. |
file | InputFile | Nein | Profile photo |
video | InputFile | Nein | [Animated profile picture](https://core.telegram.org/api/files.md#animated-profile-pictures) video |
video_start_ts | double | Nein | Fließkomma UNIX Zeitstempel in Sekunden, der den Frame des Videos/Stickers angibt, der als statische Vorschau verwendet werden soll; kann nur verwendet werden, wenn `video` oder `video_emoji_markup` eingestellt ist. |
video_emoji_markup | VideoSize | Nein | Animiertes Sticker-Profilbild, muss entweder einen [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md)- oder einen [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md)]-Konstruktor enthalten. |
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_INVALID – Dies ist kein gültiger Bot.
- 400 · EMOJI_MARKUP_INVALID – Die angegebene video_emoji_markup war ungültig.
- 400 · FILE_PARTS_INVALID – Die Anzahl der Dateiteile ist ungültig.
- 400 · IMAGE_PROCESS_FAILED – Fehler bei der Bildverarbeitung.
- 400 · PHOTO_CROP_FILE_MISSING – Datei zum Zuschneiden des Fotos fehlt.
- 400 · PHOTO_CROP_SIZE_SMALL – Foto ist zu klein.
- 400 · PHOTO_EXT_INVALID — Die Erweiterung des Fotos ist ungültig.
- 400 · PHOTO_FILE_MISSING – Profilfotodatei fehlt.
- 400 · PHOTO_INVALID – Foto ungültig.
- 400 · STICKER_MIME_INVALID – Der angegebene Aufklebertyp MIME ist ungültig.
- 400 · VIDEO_FILE_INVALID – Die angegebene Videodatei ist ungültig.