InputProfilePhotoAnimated

class telegram.InputProfilePhotoAnimated(animation, main_frame_timestamp=None, *, api_kwargs=None)[source]

Bases: telegram.InputProfilePhoto

An animated profile photo in the MPEG4 format.

Added in version 22.1.

Parameters:
type[source]

'animated'.

Type:

str

animation[source]

The animated profile photo.

Type:

telegram.InputFile | str

main_frame_timestamp[source]

Optional. Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0.

Type:

datetime.timedelta