Class InlineQueryResultAudio
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultAudio
-
public class InlineQueryResultAudio extends InlineQueryResult
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.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultAudio()
InlineQueryResultAudio(String audioUrl, String title)
InlineQueryResultAudio(String audioUrl, String title, String caption, String performer, Integer audioDuration, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultAudio
public InlineQueryResultAudio()
-
InlineQueryResultAudio
public InlineQueryResultAudio(String audioUrl, String title)
- Parameters:
audioUrl
- A valid URL for the audio filetitle
- Title
-
InlineQueryResultAudio
public InlineQueryResultAudio(String audioUrl, String title, String caption, String performer, Integer audioDuration, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
audioUrl
- A valid URL for the audio filetitle
- Titlecaption
- Optional. Caption, 0-200 charactersperformer
- Optional. PerformeraudioDuration
- Optional. Audio duration in secondsreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message to be sent
-
-