Class InlineQueryResultDocument


  • public class InlineQueryResultDocument
    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

      • InlineQueryResultDocument

        public InlineQueryResultDocument()
      • InlineQueryResultDocument

        public InlineQueryResultDocument​(String documentUrl,
                                         String title,
                                         String mimeType)
        Parameters:
        documentUrl - A valid URL for the file
        mimeType - Mime type of the content of the file, either “application/pdf” or “application/zip”
        title - Title for the result
      • InlineQueryResultDocument

        public InlineQueryResultDocument​(String documentUrl,
                                         String title,
                                         String mimeType,
                                         String caption,
                                         String description,
                                         String thumbUrl,
                                         Integer thumbWidth,
                                         Integer thumbHeight,
                                         InlineKeyboardMarkup replyMarkup,
                                         InputMessageContent inputMessageContent)
        Parameters:
        documentUrl - A valid URL for the file
        mimeType - Mime type of the content of the file, either “application/pdf” or “application/zip”
        title - Title for the result
        caption - Optional. Caption of the document to be sent, 0-200 characters
        description - Optional. Short description of the result
        thumbUrl - Optional. URL of the thumbnail (jpeg only) for the file
        thumbWidth - Optional. Thumbnail width
        thumbHeight - Optional. Thumbnail height
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message