public static class InlineQueryResultAudio.InlineQueryResultAudioBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineQueryResultAudio.InlineQueryResultAudioBuilder |
audioDuration(Integer audioDuration)
*Optional*
Sets the duration of the audio to the provided value
|
InlineQueryResultAudio.InlineQueryResultAudioBuilder |
audioUrl(URL audioUrl)
*Required*
Sets the URL of the audio for the result
|
InlineQueryResultAudio |
build()
Builds the InlineQueryResultAudio object
|
InlineQueryResultAudio.InlineQueryResultAudioBuilder |
caption(String caption)
*Optional*
Sets the caption you wat to be sent with this result to the provided String
|
InlineQueryResultAudio.InlineQueryResultAudioBuilder |
id(String id)
*Optional*
Sets the ID to the provided value.
|
InlineQueryResultAudio.InlineQueryResultAudioBuilder |
inputMessageContent(InputMessageContent inputMessageContent)
*Optional*
Sets the content you want to be sent with this result to the provided InputMessageContent object
|
InlineQueryResultAudio.InlineQueryResultAudioBuilder |
performer(String performer)
*Optional*
Sets the performer to the provided value
|
InlineQueryResultAudio.InlineQueryResultAudioBuilder |
replyMarkup(InlineReplyMarkup replyMarkup)
*Optional*
Sets the inline keyboard attached to this message to the InlineReplyMarkup provided
|
InlineQueryResultAudio.InlineQueryResultAudioBuilder |
title(String title)
*Optional*
Sets the title to the provided value
|
public InlineQueryResultAudio.InlineQueryResultAudioBuilder id(String id)
id - The ID you want the result to havepublic InlineQueryResultAudio.InlineQueryResultAudioBuilder audioUrl(URL audioUrl)
audioUrl - The URL of the audio for the resultpublic InlineQueryResultAudio.InlineQueryResultAudioBuilder title(String title)
title - The title you want the result to havepublic InlineQueryResultAudio.InlineQueryResultAudioBuilder performer(String performer)
performer - The performer of the audio filepublic InlineQueryResultAudio.InlineQueryResultAudioBuilder audioDuration(Integer audioDuration)
audioDuration - The duration of the audio filepublic InlineQueryResultAudio.InlineQueryResultAudioBuilder replyMarkup(InlineReplyMarkup replyMarkup)
replyMarkup - The inline keyboard you want to attach to the messagepublic InlineQueryResultAudio.InlineQueryResultAudioBuilder inputMessageContent(InputMessageContent inputMessageContent)
inputMessageContent - The content you want to be sent with the resultpublic InlineQueryResultAudio.InlineQueryResultAudioBuilder caption(String caption)
caption - The caption you want to be sent with the resultpublic InlineQueryResultAudio build()
Copyright © 2017. All rights reserved.