Class InputMediaAudio


public class InputMediaAudio extends InputMediaDocument
Represents an audio file to be treated as music to be sent.
  • Constructor Details

    • InputMediaAudio

      public InputMediaAudio()
  • Method Details

    • getDuration

      @Nullable public @Nullable Integer getDuration()
      Returns:
      Duration of the audio in seconds.
    • setDuration

      public void setDuration(@Nullable @Nullable Integer duration)
      Parameters:
      duration - Duration of the audio in seconds.
    • getPerformer

      @Nullable public @Nullable String getPerformer()
      Returns:
      Performer of the audio.
    • setPerformer

      public void setPerformer(@Nullable @Nullable String performer)
      Parameters:
      performer - Performer of the audio.
    • getTitle

      @Nullable public @Nullable String getTitle()
      Returns:
      Title of the audio
    • setTitle

      public void setTitle(@Nullable @Nullable String title)
      Parameters:
      title - Title of the audio
    • toString

      public String toString()
      Overrides:
      toString in class InputMediaDocument