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. The file, video and video_emoji_markup flags are mutually exclusive.
- Details:
Layer:
211
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 delete 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.
- user_id (
- Returns:
photos.Photo