InputProfilePhoto.animated constructor

const InputProfilePhoto.animated({
  1. @JsonKey(name: 'type') @Default(InputProfilePhotoType.animated) InputProfilePhotoType type,
  2. @JsonKey(name: 'animation') @InputFileConverter() required InputFile animation,
  3. @JsonKey(name: 'main_frame_timestamp') double? mainFrameTimestamp,
})

An animated profile photo in the MPEG4 format.

Implementation

const factory InputProfilePhoto.animated({
  /// Type of the profile photo, always "animated"
  @JsonKey(name: 'type')
  @Default(InputProfilePhotoType.animated)
  final InputProfilePhotoType type,

  /// The animated profile photo. Profile photos can't be reused and can only be
  /// uploaded as a new file.
  @JsonKey(name: 'animation')
  @InputFileConverter()
  required InputFile animation,

  /// Optional. Timestamp in seconds of the frame that will be used as the
  /// static profile photo. Defaults to 0.0.
  @JsonKey(name: 'main_frame_timestamp') double? mainFrameTimestamp,
}) = InputProfilePhotoAnimated;