Class InlineQueryResultCachedVoice
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedVoice
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
- Direct Known Subclasses:
InlineQueryResultCachedVoice
public class InlineQueryResultCachedVoice extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedVoice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCaption()StringgetId()InputMessageContentgetInputMessageContent()StringgetParseMode()InlineKeyboardMarkupgetReplyMarkup()StringgetTitle()StringgetType()StringgetVoiceFileId()InlineQueryResultCachedVoicesetCaption(String caption)InlineQueryResultCachedVoicesetId(String id)InlineQueryResultCachedVoicesetInputMessageContent(InputMessageContent inputMessageContent)InlineQueryResultCachedVoicesetParseMode(String parseMode)InlineQueryResultCachedVoicesetReplyMarkup(InlineKeyboardMarkup replyMarkup)InlineQueryResultCachedVoicesetTitle(String title)InlineQueryResultCachedVoicesetVoiceFileId(String voiceFileId)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultCachedVoice setId(String id)
-
getVoiceFileId
public String getVoiceFileId()
-
setVoiceFileId
public InlineQueryResultCachedVoice setVoiceFileId(String voiceFileId)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultCachedVoice setTitle(String title)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultCachedVoice setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultCachedVoice setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultCachedVoice setCaption(String caption)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultCachedVoice setParseMode(String parseMode)
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-