Class InlineQueryResultCachedAudio
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedAudio
-
- All Implemented Interfaces:
Serializable
,BotApiObject
,InputBotApiObject
,Validable
,InlineQueryResult
- Direct Known Subclasses:
InlineQueryResultCachedAudio
public class InlineQueryResultCachedAudio extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to an mp3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedAudio()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAudioFileId()
String
getCaption()
String
getId()
InputMessageContent
getInputMessageContent()
String
getParseMode()
InlineKeyboardMarkup
getReplyMarkup()
String
getType()
InlineQueryResultCachedAudio
setAudioFileId(String audioFileId)
InlineQueryResultCachedAudio
setCaption(String caption)
InlineQueryResultCachedAudio
setId(String id)
InlineQueryResultCachedAudio
setInputMessageContent(InputMessageContent inputMessageContent)
InlineQueryResultCachedAudio
setParseMode(String parseMode)
InlineQueryResultCachedAudio
setReplyMarkup(InlineKeyboardMarkup replyMarkup)
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 InlineQueryResultCachedAudio setId(String id)
-
getAudioFileId
public String getAudioFileId()
-
setAudioFileId
public InlineQueryResultCachedAudio setAudioFileId(String audioFileId)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultCachedAudio setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultCachedAudio setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultCachedAudio setCaption(String caption)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultCachedAudio 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
-
-