public static class SendableVoiceMessage.SendableVoiceMessageBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
SendableVoiceMessage |
build()
Builds the SendableVoiceMessage object
|
SendableVoiceMessage.SendableVoiceMessageBuilder |
caption(String caption)
*Optional*
Sets the caption you want to send with the message
|
SendableVoiceMessage.SendableVoiceMessageBuilder |
disableNotification(boolean disableNotification)
*Optional*
Sets whether or not to disable any notification this message might usually cause.
|
SendableVoiceMessage.SendableVoiceMessageBuilder |
duration(int duration)
*Optional*
Sets the duration of the voice recording file to be sent
|
SendableVoiceMessage.SendableVoiceMessageBuilder |
replyMarkup(ReplyMarkup replyMarkup)
*Optional*
Sets the ReplyMarkup that you want to send with the message
|
SendableVoiceMessage.SendableVoiceMessageBuilder |
replyTo(long replyTo)
*Optional*
Sets the ID of the message you want to reply to
|
SendableVoiceMessage.SendableVoiceMessageBuilder |
replyTo(Message replyTo)
*Optional*
Sets the Message object that you want to reply to
|
SendableVoiceMessage.SendableVoiceMessageBuilder |
voice(InputFile voice)
*Required*
Sets the voice recording InputFile to be sent
|
public SendableVoiceMessage.SendableVoiceMessageBuilder voice(InputFile voice)
voice - The voice recording InputFilepublic SendableVoiceMessage.SendableVoiceMessageBuilder duration(int duration)
duration - The duration of the voice recording filepublic SendableVoiceMessage.SendableVoiceMessageBuilder replyTo(Message replyTo)
replyTo - The Message object you want to reply topublic SendableVoiceMessage.SendableVoiceMessageBuilder replyTo(long replyTo)
replyTo - The ID of the message you want to reply topublic SendableVoiceMessage.SendableVoiceMessageBuilder replyMarkup(ReplyMarkup replyMarkup)
replyMarkup - The ReplyMarkup you want to send with the messagepublic SendableVoiceMessage.SendableVoiceMessageBuilder disableNotification(boolean disableNotification)
disableNotification - True to disable notifications for this message, False otherwisepublic SendableVoiceMessage.SendableVoiceMessageBuilder caption(String caption)
caption - The caption you want to send with the messagepublic SendableVoiceMessage build()
Copyright © 2017. All rights reserved.