InputProfilePhotoAnimated

class aiogram.types.input_profile_photo_animated.InputProfilePhotoAnimated(*, type: Literal[InputProfilePhotoType.ANIMATED] = InputProfilePhotoType.ANIMATED, animation: str | InputFile, main_frame_timestamp: float | None = None, **extra_data: Any)[source]

An animated profile photo in the MPEG4 format.

Source: https://core.telegram.org/bots/api#inputprofilephotoanimated

type: Literal[InputProfilePhotoType.ANIMATED]

Type of the profile photo, must be ‘animated’

animation: InputFileUnion

The animated profile photo. Profile photos can’t be reused and can only be uploaded as a new file, so you can pass ‘attach://<file_attach_name>’ if the photo was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »

main_frame_timestamp: float | None

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