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