Class SendDocument
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SendDocument,Message>
io.github.natanimn.telebof.requests.send.SendBuilder<SendDocument,Message>
io.github.natanimn.telebof.requests.send.SendDocument
SendDocument class. Returns
Message on success.- Since:
- 3 March 2025
-
Constructor Summary
ConstructorsConstructorDescriptionSendDocument(Object chatId, File document, Api api) RequiredSendDocument(Object chatId, String document, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptionOptionalcaptionEntities(MessageEntity[] captionEntities) OptionaldisableContentTypeDetection(boolean disableContentTypeDetection) OptionalOptionalOptionalMethods inherited from class io.github.natanimn.telebof.requests.send.SendBuilder
allowPaidBroadcast, businessConnectionId, directMessagesTopicId, disableNotification, disableWebPagePreview, messageEffectId, messageThreadId, parseMode, protectContent, replyMarkup, replyParameters, suggestedPostParametersMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
SendDocument
Required- Parameters:
chatId- chat iddocument- file id or urlapi- api- See Also:
-
SendDocument
Required- Parameters:
chatId- chat iddocument- file id or urlapi- api- See Also:
-
-
Method Details
-
caption
Optional- Parameters:
caption- Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing- Returns:
SendDocument
-
captionEntities
Optional- Parameters:
captionEntities- A list of special entities that appear in the caption, which can be specified instead of parse_mode- Returns:
SendDocument
-
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:
SendDocument
-
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:
SendDocument
-
disableContentTypeDetection
Optional- Parameters:
disableContentTypeDetection- Disables automatic server-side content type detection for files uploaded using multipart/form-data- Returns:
SendDocument
-