Class SendVoice


public class SendVoice extends SendCaption
Since:
1.0.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • SendVoice

      public SendVoice()
      Constructor.
  • Method Details

    • getVoice

      @NonNull public @NonNull String getVoice()
      Returns:
      Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data.
    • setVoice

      public void setVoice(@NonNull @NonNull String voice)
      Parameters:
      voice - Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data.
    • getDuration

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

      public void setDuration(@Nullable @Nullable Integer duration)
      Parameters:
      duration - Duration of the voice message in seconds.