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 TypeMethodDescriptiondisableContentTypeDetection
(boolean disable_content_type_detection) OptionalOptionalMethods 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
-
-
Method Details
-
thumbnail
Optional- Parameters:
thumbnail
- Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320.- Returns:
InputMediaDocument
-
disableContentTypeDetection
Optional- Parameters:
disable_content_type_detection
- Disables automatic server-side content type detection for files uploaded using multipart/form-data(InputMediaDocument(File)
. Always True, if the document is sent as part of an album.- Returns:
InputMediaDocument
-