Package 

Class VoiceResponse

  • All Implemented Interfaces:
    be.rlab.tehanu.messages.model.Response

    
    public final class VoiceResponse
     implements Response<TelegramFile>
                        

    Represent audio files displayed as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.

    • Method Summary

      Modifier and Type Method Description
      String getType()
      TelegramFile getData()
      final Integer getDuration() Duration of the voice message in seconds.
      final String getCaption() Message caption.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait