Class InlineQueryResultCachedAudio
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultCachedAudio
-
public class InlineQueryResultCachedAudio extends InlineQueryResult
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.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedAudio()
InlineQueryResultCachedAudio(String audioFileId)
InlineQueryResultCachedAudio(String audioFileId, String caption, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultCachedAudio
public InlineQueryResultCachedAudio()
-
InlineQueryResultCachedAudio
public InlineQueryResultCachedAudio(String audioFileId)
- Parameters:
audioFileId
- A valid file identifier for the audio file
-
InlineQueryResultCachedAudio
public InlineQueryResultCachedAudio(String audioFileId, String caption, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
audioFileId
- A valid file identifier for the audio filecaption
- Optional. Caption, 0-200 charactersreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-