Class SendAudio

java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendAudio

public class SendAudio extends Send
See Also:
  • Field Details

  • Constructor Details

    • SendAudio

      public SendAudio()
  • Method Details

    • getAudio

      @NonNull public @NonNull String getAudio()
      Returns:
      Audio file to send.
    • setAudio

      public void setAudio(@NonNull @NonNull String audio)
      Parameters:
      audio - Audio file to send.
    • getCaption

      @Nullable public @Nullable String getCaption()
      Returns:
      Audio caption, 0-1024 characters.
    • setCaption

      public void setCaption(@Nullable @Nullable String caption)
      Parameters:
      caption - Audio caption, 0-1024 characters.
    • getParseMode

      @Nullable public @Nullable String getParseMode()
      Returns:
      Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
    • setParseMode

      public void setParseMode(@Nullable @Nullable String parseMode)
      Parameters:
      parseMode - Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
    • 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.
    • setPerformer

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

      @Nullable public @Nullable String getTitle()
      Returns:
      Track name.
    • setTitle

      public void setTitle(@Nullable @Nullable String title)
      Parameters:
      title - Track name.
    • getThumb

      @Nullable public @Nullable String getThumb()
      Returns:
      Thumbnail of the file sent.
    • setThumb

      public void setThumb(@Nullable @Nullable String thumb)
      Parameters:
      thumb - Thumbnail of the file sent.