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 inlocal_mode
, passing the path of the file (as string orpathlib.Path
object) is supported as well.