set_profile_photo()

Client.set_profile_photo()

Set a new profile photo.

This method only works for Users. Bots profile photos must be set using BotFather.

Parameters

photo (str) – Profile photo to set. Pass a file path as string to upload a new photo that exists on your local machine.

Returns

bool – True on success.

Example

app.set_profile_photo("new_photo.jpg")