Class Voice

java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
io.micronaut.chatbots.telegram.api.Voice

public class Voice extends AbstractFile
This object represents a voice note.
See Also:
  • Constructor Details

    • Voice

      public Voice()
  • Method Details

    • getDuration

      @NonNull public @NonNull Integer getDuration()
      Returns:
      Duration of the audio in seconds as defined by sender.
    • setDuration

      public void setDuration(@NonNull @NonNull Integer duration)
      Parameters:
      duration - Duration of the audio in seconds as defined by sender.
    • getMimeType

      @Nullable public @Nullable String getMimeType()
      Returns:
      MIME type of the file as defined by sender.
    • setMimeType

      public void setMimeType(@Nullable @Nullable String mimeType)
      Parameters:
      mimeType - MIME type of the file as defined by sender.
    • getFileSize

      @Nullable public @Nullable Long getFileSize()
      Returns:
      File size.
    • setFileSize

      public void setFileSize(@Nullable @Nullable Long fileSize)
      Parameters:
      fileSize - File size.
    • toString

      public String toString()
      Overrides:
      toString in class Object