Class 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.
    • Constructor Detail

      • InlineQueryResultAudio

        public InlineQueryResultAudio()
      • InlineQueryResultAudio

        public InlineQueryResultAudio​(String audioUrl,
                                      String title)
        Parameters:
        audioUrl - A valid URL for the audio file
        title - 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 file
        title - Title
        caption - Optional. Caption, 0-200 characters
        performer - Optional. Performer
        audioDuration - Optional. Audio duration in seconds
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message to be sent