photos.uploadProfilePhoto
Updates current user profile photo.
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
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. |
file | InputFile | لأ | Profile photo |
video | InputFile | لأ | [Animated profile picture](https://core.telegram.org/api/files.md#animated-profile-pictures) video |
video_start_ts | double | لأ | النقطة العائمة UNIX الطابع الزمني بالثواني، تشير إلى إطار الفيديو/الملصق الذي يجب استخدامه كمعاينة ثابتة؛ لا يمكن استخدامه إلا إذا تم ضبط `video` أو `video_emoji_markup`. |
video_emoji_markup | VideoSize | لأ | يجب أن تحتوي الصورة الشخصية للملصقات المتحركة على مُنشئ [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) أو مُنشئ [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md). |
الردود
photos.Photo
MTProto RPC
- 400 · ALBUM_PHOTOS_TOO_MANY — You have uploaded too many profile photos, delete some before retrying.
- 400 · BOT_INVALID — This is not a valid bot.
- 400 · EMOJI_MARKUP_INVALID — The specified video_emoji_markup was invalid.
- 400 · FILE_PARTS_INVALID — The number of file parts is invalid.
- 400 · IMAGE_PROCESS_FAILED — Failure while processing image.
- 400 · PHOTO_CROP_FILE_MISSING — Photo crop file missing.
- 400 · PHOTO_CROP_SIZE_SMALL — Photo is too small.
- 400 · PHOTO_EXT_INVALID — The extension of the photo is invalid.
- 400 · PHOTO_FILE_MISSING — Profile photo file missing.
- 400 · PHOTO_INVALID — Photo invalid.
- 400 · STICKER_MIME_INVALID — The specified sticker MIME type is invalid.
- 400 · VIDEO_FILE_INVALID — The specified video file is invalid.