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 String
getCaption()
String
getId()
InputMessageContent
getInputMessageContent()
String
getParseMode()
InlineKeyboardMarkup
getReplyMarkup()
String
getTitle()
String
getType()
String
getVoiceFileId()
InlineQueryResultCachedVoice
setCaption(String caption)
InlineQueryResultCachedVoice
setId(String id)
InlineQueryResultCachedVoice
setInputMessageContent(InputMessageContent inputMessageContent)
InlineQueryResultCachedVoice
setParseMode(String parseMode)
InlineQueryResultCachedVoice
setReplyMarkup(InlineKeyboardMarkup replyMarkup)
InlineQueryResultCachedVoice
setTitle(String title)
InlineQueryResultCachedVoice
setVoiceFileId(String voiceFileId)
String
toString()
void
validate()
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 TelegramApiValidationException
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
-