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:
194
ID:
E14C4A71
- Parameters:
user_id (
InputUser
) – The contactsuggest (
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 photovideo (
InputFile
, optional) – Animated profile picture videovideo_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: