upload_contact_profile_photo()¶
- async Client.upload_contact_profile_photo()¶
Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.
Usable by Users Bots- Parameters:
user_id (
int|str) – Unique identifier (int) or username (str) of the target contact.photo (
InputFile, optional) – Profile photo to set or suggest.video (
InputFile, optional) – Animated profile picture video.video_start_ts (
float, optional) – Floating point UNIX timestamp in seconds for preview frame.video_emoji_markup (
VideoSize, optional) – Animated sticker profile picture markup.suggest (
bool, optional) – If set, sends a suggest profile photo service message to the user.save (
bool, optional) – If set, removes a previously set personal profile picture.
- Returns:
Photo– The photo object.
Example
await app.upload_contact_profile_photo(user_id, photo=input_file)