-
- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVoiceResponse.Companion
-
Constructor Summary
Constructors Constructor Description VoiceResponse(TelegramFile data, Integer duration, String caption)
-
Method Summary
Modifier and Type Method Description StringgetType()TelegramFilegetData()final IntegergetDuration()Duration of the voice message in seconds. final StringgetCaption()Message caption. -
-
Method Detail
-
getData
TelegramFile getData()
-
getDuration
final Integer getDuration()
Duration of the voice message in seconds.
-
getCaption
final String getCaption()
Message caption.
-
-
-
-