Class InputProfilePhotoAnimated

java.lang.Object
io.github.natanimn.telebof.types.input.InputProfilePhotoAnimated
All Implemented Interfaces:
InputMedia, InputProfilePhoto, Serializable

public class InputProfilePhotoAnimated extends Object implements InputProfilePhoto
An animated profile photo in the MPEG4 format.
Since:
19 August 2025
See Also:
  • Constructor Details

    • InputProfilePhotoAnimated

      public InputProfilePhotoAnimated(File animation)
      Required
      Parameters:
      animation - The animated profile photo.
  • Method Details

    • mainFrameTimestamp

      public InputProfilePhotoAnimated mainFrameTimestamp(double main_frame_timestamp)
      Optional
      Parameters:
      main_frame_timestamp - Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0
      Returns:
      InputProfilePhotoAnimated
    • hasFile

      public boolean hasFile()
      Used only for internal purpose
      Specified by:
      hasFile in interface InputMedia
      Returns:
      boolean
    • getFiles

      public List<File> getFiles()
      Used only for internal purpose
      Specified by:
      getFiles in interface InputMedia
      Returns:
      boolean