Class SendVoice.SendVoiceBuilder
- java.lang.Object
-
- com.jtelegram.api.requests.message.send.SendVoice.SendVoiceBuilder
-
- Enclosing class:
- SendVoice
public static class SendVoice.SendVoiceBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendVoice
build()
SendVoice.SendVoiceBuilder
callback(java.util.function.Consumer<VoiceMessage> callback)
SendVoice.SendVoiceBuilder
caption(java.lang.String caption)
SendVoice.SendVoiceBuilder
chatId(ChatId chatId)
SendVoice.SendVoiceBuilder
disableNotification(java.lang.Boolean disableNotification)
SendVoice.SendVoiceBuilder
duration(java.lang.Integer duration)
SendVoice.SendVoiceBuilder
errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SendVoice.SendVoiceBuilder
parseMode(ParseMode parseMode)
SendVoice.SendVoiceBuilder
replyMarkup(ReplyMarkup replyMarkup)
SendVoice.SendVoiceBuilder
replyToMessageId(java.lang.Integer replyToMessageId)
java.lang.String
toString()
SendVoice.SendVoiceBuilder
voice(InputFile voice)
-
-
-
Method Detail
-
callback
public SendVoice.SendVoiceBuilder callback(java.util.function.Consumer<VoiceMessage> callback)
-
errorHandler
public SendVoice.SendVoiceBuilder errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
chatId
public SendVoice.SendVoiceBuilder chatId(ChatId chatId)
-
replyToMessageId
public SendVoice.SendVoiceBuilder replyToMessageId(java.lang.Integer replyToMessageId)
-
disableNotification
public SendVoice.SendVoiceBuilder disableNotification(java.lang.Boolean disableNotification)
-
replyMarkup
public SendVoice.SendVoiceBuilder replyMarkup(ReplyMarkup replyMarkup)
-
voice
public SendVoice.SendVoiceBuilder voice(InputFile voice)
-
caption
public SendVoice.SendVoiceBuilder caption(java.lang.String caption)
-
duration
public SendVoice.SendVoiceBuilder duration(java.lang.Integer duration)
-
parseMode
public SendVoice.SendVoiceBuilder parseMode(ParseMode parseMode)
-
build
public SendVoice build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-