Class InlineQueryResultAudio
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultAudio
-
- All Implemented Interfaces:
Serializable
,BotApiObject
,InputBotApiObject
,Validable
,InlineQueryResult
public class InlineQueryResultAudio extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to an mp3 audio file. 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 InlineQueryResultAudio()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getAudioDuration()
String
getAudioUrl()
String
getCaption()
String
getId()
InputMessageContent
getInputMessageContent()
String
getParseMode()
String
getPerformer()
InlineKeyboardMarkup
getReplyMarkup()
String
getTitle()
String
getType()
InlineQueryResultAudio
setAudioDuration(Integer audioDuration)
InlineQueryResultAudio
setAudioUrl(String audioUrl)
InlineQueryResultAudio
setCaption(String caption)
InlineQueryResultAudio
setId(String id)
InlineQueryResultAudio
setInputMessageContent(InputMessageContent inputMessageContent)
InlineQueryResultAudio
setParseMode(String parseMode)
InlineQueryResultAudio
setPerformer(String performer)
InlineQueryResultAudio
setReplyMarkup(InlineKeyboardMarkup replyMarkup)
InlineQueryResultAudio
setTitle(String title)
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 InlineQueryResultAudio setId(String id)
-
getAudioUrl
public String getAudioUrl()
-
setAudioUrl
public InlineQueryResultAudio setAudioUrl(String audioUrl)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultAudio setTitle(String title)
-
getPerformer
public String getPerformer()
-
setPerformer
public InlineQueryResultAudio setPerformer(String performer)
-
getAudioDuration
public Integer getAudioDuration()
-
setAudioDuration
public InlineQueryResultAudio setAudioDuration(Integer audioDuration)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultAudio setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultAudio setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultAudio setCaption(String caption)
-
getParseMode
public String getParseMode()
-
setParseMode
public InlineQueryResultAudio 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
-
-