Class InputMediaDocument
java.lang.Object
io.github.natanimn.telebof.types.input.InputMediaBuilder<InputMediaDocument>
io.github.natanimn.telebof.types.input.InputMediaDocument
- All Implemented Interfaces:
InputMedia,Serializable
Represents a general file to be sent.
- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputMediaDocument(File media) RequiredInputMediaDocument(String media) Required -
Method Summary
Modifier and TypeMethodDescriptionsetDisableContentTypeDetection(Boolean disableContentTypeDetection) Optional.setThumbnail(File thumbnail) Optional.setThumbnail(String thumbnail) Optional.Methods inherited from class io.github.natanimn.telebof.types.input.InputMediaBuilder
caption, captionEntities, getFiles, hasFile, parseMode
-
Constructor Details
-
InputMediaDocument
Required- Parameters:
media- File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended) or pass an HTTP URL for Telegram to get a file from the Internet.
-
InputMediaDocument
Required- Parameters:
media- File to send. Pass a File to upload from your local machine
-
-
Method Details
-
setThumbnail
Optional.- Parameters:
thumbnail- Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side.
-
setThumbnail
Optional.- Parameters:
thumbnail- Thumbnail file to upload from your local machine
-
setDisableContentTypeDetection
Optional.- Parameters:
disableContentTypeDetection- Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album.
-