public static class InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineQueryResultCachedVoice |
build()
Builds the InlineQueryResultCachedVoice object
|
InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder |
caption(String caption)
*Optional*
Sets the caption you wat to be sent with this result to the provided String
|
InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder |
id(String id)
*Optional*
Sets the ID to the provided value.
|
InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder |
inputMessageContent(InputMessageContent inputMessageContent)
*Optional*
Sets the content you want to be sent with this result to the provided InputMessageContent object
|
InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder |
replyMarkup(InlineReplyMarkup replyMarkup)
*Optional*
Sets the inline keyboard attached to this message to the InlineReplyMarkup provided
|
InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder |
title(String title)
*Required*
Sets the title to the provided value
|
InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder |
voiceFileId(String voiceFileId)
*Required*
Sets the ID of the cached voice file on the telegram servers that you want this result to use
|
public InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder id(String id)
id - The ID you want the result to havepublic InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder voiceFileId(String voiceFileId)
voiceFileId - The ID of the cached voice file you want to use from the telegram serverspublic InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder title(String title)
title - The title you want the result to havepublic InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder replyMarkup(InlineReplyMarkup replyMarkup)
replyMarkup - The inline keyboard you want to attach to the messagepublic InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder inputMessageContent(InputMessageContent inputMessageContent)
inputMessageContent - The content you want to be sent with the resultpublic InlineQueryResultCachedVoice.InlineQueryResultCachedVoiceBuilder caption(String caption)
caption - The caption you want to be sent with the resultpublic InlineQueryResultCachedVoice build()
Copyright © 2017. All rights reserved.