photos.UploadContactProfilePhoto#

class pyrogram.raw.functions.photos.UploadContactProfilePhoto#

Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.

Details:
  • Layer: 158

  • ID: E14C4A71

Parameters:
  • user_id (InputUser) – The contact.

  • suggest (bool, optional) – If set, will send a messageActionSuggestProfilePhoto service message to user_id, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user).

  • save (bool, optional) – If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply deleted the messageActionSuggestProfilePhoto service message with messages.deleteMessages).

  • file (InputFile, optional) – Profile photo.

  • video (InputFile, optional) – Animated profile picture video.

  • video_start_ts (float 64-bit, optional) – Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set.

  • video_emoji_markup (VideoSize, optional) – Animated sticker profile picture, must contain either a videoSizeEmojiMarkup or a videoSizeStickerMarkup constructor.

Returns:

photos.Photo