Class InlineQueryResultVoice
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultVoice
-
public class InlineQueryResultVoice extends InlineQueryResult
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.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultVoice()
InlineQueryResultVoice(String voiceUrl, String title)
InlineQueryResultVoice(String voiceUrl, String title, String caption, Integer voiceDuration, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultVoice
public InlineQueryResultVoice()
-
InlineQueryResultVoice
public InlineQueryResultVoice(String voiceUrl, String title)
- Parameters:
voiceUrl
- A valid URL for the voice recordingtitle
- Title
-
InlineQueryResultVoice
public InlineQueryResultVoice(String voiceUrl, String title, String caption, Integer voiceDuration, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
voiceUrl
- A valid URL for the voice recordingtitle
- Titlecaption
- Optional. Caption, 0-200 charactersvoiceDuration
- Optional. Recording duration in secondsreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-