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