Class InlineQueryResultCachedVoice


  • public class InlineQueryResultCachedVoice
    extends InlineQueryResult
    Represents a link to a voice message stored on the Telegram servers 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

      • InlineQueryResultCachedVoice

        public InlineQueryResultCachedVoice()
      • InlineQueryResultCachedVoice

        public InlineQueryResultCachedVoice​(String voiceFileId,
                                            String title)
        Parameters:
        voiceFileId - A valid file identifier for the voice message
        title - Title
      • InlineQueryResultCachedVoice

        public InlineQueryResultCachedVoice​(String voiceFileId,
                                            String title,
                                            String caption,
                                            InlineKeyboardMarkup replyMarkup,
                                            InputMessageContent inputMessageContent)
        Parameters:
        voiceFileId - A valid file identifier for the voice message
        title - Title
        caption - Optional. Caption, 0-200 characters
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message