Class InlineQueryResultVoice
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultVoice
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
public class InlineQueryResultVoice extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to a voice recording in an .ogg container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultVoice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCaption()StringgetId()InputMessageContentgetInputMessageContent()InlineKeyboardMarkupgetReplyMarkup()StringgetTitle()StringgetType()IntegergetVoiceDuration()StringgetVoiceUrl()InlineQueryResultVoicesetCaption(String caption)InlineQueryResultVoicesetId(String id)InlineQueryResultVoicesetInputMessageContent(InputMessageContent inputMessageContent)InlineQueryResultVoicesetReplyMarkup(InlineKeyboardMarkup replyMarkup)InlineQueryResultVoicesetTitle(String title)InlineQueryResultVoicesetVoiceDuration(Integer voiceDuration)InlineQueryResultVoicesetVoiceUrl(String voiceUrl)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultVoice setId(String id)
-
getVoiceUrl
public String getVoiceUrl()
-
setVoiceUrl
public InlineQueryResultVoice setVoiceUrl(String voiceUrl)
-
getTitle
public String getTitle()
-
setTitle
public InlineQueryResultVoice setTitle(String title)
-
getVoiceDuration
public Integer getVoiceDuration()
-
setVoiceDuration
public InlineQueryResultVoice setVoiceDuration(Integer voiceDuration)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultVoice setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultVoice setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
getCaption
public String getCaption()
-
setCaption
public InlineQueryResultVoice setCaption(String caption)
-
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
-
-