Class InlineQueryResultCachedDocument


  • public class InlineQueryResultCachedDocument
    extends InlineQueryResult
    Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.
    • Constructor Detail

      • InlineQueryResultCachedDocument

        public InlineQueryResultCachedDocument()
      • InlineQueryResultCachedDocument

        public InlineQueryResultCachedDocument​(String documentFileId,
                                               String title)
        Parameters:
        documentFileId - A valid file identifier for the file
        title - Title for the result
      • InlineQueryResultCachedDocument

        public InlineQueryResultCachedDocument​(String documentFileId,
                                               String title,
                                               String caption,
                                               String description,
                                               InlineKeyboardMarkup replyMarkup,
                                               InputMessageContent inputMessageContent)
        Parameters:
        documentFileId - A valid file identifier for the file
        title - Title for the result
        caption - Optional. Caption of the document to be sent, 0-200 characters
        description - Optional. Short description of the result
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message