Class InlineQueryResultDocument
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultDocument
- All Implemented Interfaces:
- InlineQueryResult,- Serializable
Represents a link to a file. By default, this file will be sent by the user with an optional caption.
 Alternatively, you can use 
inputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent) to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.- Since:
- 3 March 2025
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescription
- 
Constructor SummaryConstructorsConstructorDescriptionInlineQueryResultDocument(String id, String document_url, String title, MimeType mime_type) Required
- 
Method SummaryModifier and TypeMethodDescriptionOptionalcaptionEntities(MessageEntity[] caption_entities) Optionaldescription(String description) OptionalinputMessageContent(InputTextMessageContent input_message_content) OptionalOptionalreplyMarkup(InlineKeyboardMarkup keyboard) OptionalthumbnailHeight(int thumbnail_height) OptionalthumbnailUrl(String thumbnail_url) OptionalthumbnailWidth(int thumbnail_width) Optional
- 
Field Details- 
type
- 
id
- 
caption
- 
parse_mode
- 
caption_entities
- 
input_message_content
- 
reply_markup
 
- 
- 
Constructor Details- 
InlineQueryResultDocumentRequired- Parameters:
- id- Unique identifier for this result, 1-64 bytes
- document_url- A valid URL for the file
- title- Title for the result
- mime_type- MIME type of the content of the file, either- MimeType.PDFor- MimeType.ZIP
 
 
- 
- 
Method Details- 
thumbnailUrlOptional- Parameters:
- thumbnail_url- URL of the thumbnail (JPEG only) for the file
- Returns:
- InlineQueryResultDocument
 
- 
thumbnailWidthOptional- Parameters:
- thumbnail_width- Thumbnail Width
- Returns:
- InlineQueryResultDocument
 
- 
thumbnailHeightOptional- Parameters:
- thumbnail_height- Thumbnail height
- Returns:
- InlineQueryResultDocument
 
- 
descriptionOptional- Parameters:
- description- hort description of the result
- Returns:
- InlineQueryResultDocument
 
- 
inputMessageContentOptional- Parameters:
- input_message_content- Content of the message to be sent instead of the media(photo, audio, voice, etc)
- Returns:
- T
 
- 
replyMarkupOptional- Parameters:
- keyboard-- Inline keyboardattached to the message
- Returns:
- T
 
- 
captionOptional- Parameters:
- caption- Caption of the photo to be sent, 0-1024 characters after entities parsing
- Returns:
- T
 
- 
captionEntitiesOptional- Parameters:
- caption_entities- List of special entities that appear in the caption, which can be specified instead of- parseMode(io.github.natanimn.telebof.enums.ParseMode)
- Returns:
- T
 
- 
parseModeOptional- Parameters:
- parse_mode- Mode for parsing entities in the caption
- Returns:
- T
 
 
-