Class SendVoice
java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendText
io.micronaut.chatbots.telegram.api.send.SendCaption
io.micronaut.chatbots.telegram.api.send.SendVoice
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Integer
@NonNull String
getVoice()
void
setDuration
(@Nullable Integer duration) void
Methods inherited from class io.micronaut.chatbots.telegram.api.send.SendCaption
getCaption, setCaption
Methods inherited from class io.micronaut.chatbots.telegram.api.send.SendText
getParseMode, setParseMode
Methods inherited from class io.micronaut.chatbots.telegram.api.send.Send
getChatId, getDisableNotification, getMethod, getReplyMarkup, getReplyToMessageId, setChatId, setDisableNotification, setReplyMarkup, setReplyToMessageId
-
Field Details
-
SEND_VOICE
- See Also:
-
-
Constructor Details
-
SendVoice
public SendVoice()Constructor.
-
-
Method Details
-
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
- 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
- Returns:
- Duration of the voice message in seconds.
-
setDuration
- Parameters:
duration
- Duration of the voice message in seconds.
-