Class InlineQueryResultDocument
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultDocument>
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
InlineQueryMediaResult.setInputMessageContent(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
- Author:
- Natanim
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate MimeTypeprivate Integerprivate Stringprivate Integerprivate StringFields inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
thisT -
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultDocument(String id, String documentUrl, String title, MimeType mimeType) Required -
Method Summary
Modifier and TypeMethodDescriptionsetDescription(String description) OptionalsetThumbnailHeight(Integer thumbnailHeight) OptionalsetThumbnailUrl(String thumbnailUrl) OptionalsetThumbnailWidth(Integer thumbnailWidth) OptionalMethods inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
setCaption, setCaptionEntities, setInputMessageContent, setParseMode, setReplyMarkup
-
Field Details
-
documentUrl
-
description
-
mimeType
-
thumbnailUrl
-
thumbnailWidth
-
thumbnailHeight
-
title
-
-
Constructor Details
-
InlineQueryResultDocument
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesdocumentUrl- A valid URL for the filetitle- Title for the resultmimeType- MIME type of the content of the file, eitherMimeType.PDForMimeType.ZIP
-
-
Method Details
-
setThumbnailUrl
Optional- Parameters:
thumbnailUrl- URL of the thumbnail (JPEG only) for the file- Returns:
InlineQueryResultDocument
-
setThumbnailWidth
Optional- Parameters:
thumbnailWidth- Thumbnail Width- Returns:
InlineQueryResultDocument
-
setThumbnailHeight
Optional- Parameters:
thumbnailHeight- Thumbnail height- Returns:
InlineQueryResultDocument
-
setDescription
Optional- Parameters:
description- Short description of the result- Returns:
InlineQueryResultDocument
-