InputProfilePhotoStatic¶
- class telegram.InputProfilePhotoStatic(photo, *, api_kwargs=None)[source]¶
Bases:
telegram.InputProfilePhotoA 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.Pathobject) is supported as well.
- photo[source]¶
The static profile photo.
- Type:
telegram.InputFile|str