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

      • InlineQueryResultVoice

        public InlineQueryResultVoice()
      • InlineQueryResultVoice

        public InlineQueryResultVoice​(String voiceUrl,
                                      String title)
        Parameters:
        voiceUrl - A valid URL for the voice recording
        title - Title
      • InlineQueryResultVoice

        public InlineQueryResultVoice​(String voiceUrl,
                                      String title,
                                      String caption,
                                      Integer voiceDuration,
                                      InlineKeyboardMarkup replyMarkup,
                                      InputMessageContent inputMessageContent)
        Parameters:
        voiceUrl - A valid URL for the voice recording
        title - Title
        caption - Optional. Caption, 0-200 characters
        voiceDuration - Optional. Recording duration in seconds
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message