InputProfilePhotoStatic

class telegram.InputProfilePhotoStatic(photo, *, api_kwargs=None)[source]

Bases: telegram.InputProfilePhoto

A static profile photo in the .JPG format.

Added in version 22.1.

Parameters:

photo (file object | InputFile | bytes | pathlib.Path) – The static profile photo. To upload a file, you can either pass a file object (e.g. open("filename", "rb")) or the file contents as bytes. If the bot is running in local_mode, passing the path of the file (as string or pathlib.Path object) is supported as well.

type[source]

'static'.

Type:

str

photo[source]

The static profile photo.

Type:

telegram.InputFile | str