Class 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.
    • 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 file
        caption - Optional. Caption, 0-200 characters
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message