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 chat_id, File document, Api api) RequiredSendDocument
(Object chat_id, String document, Api api) Required -
Method Summary
Modifier and TypeMethodDescriptionOptionalcaptionEntities
(MessageEntity[] caption_entities) OptionaldisableContentTypeDetection
(boolean disable_content_type_detection) OptionalOptionalOptionalMethods inherited from class io.github.natanimn.telebof.requests.send.SendBuilder
allowPaidBroadcast, businessConnectionId, disableNotification, disableWebPagePreview, messageEffectId, messageThreadId, parseMode, protectContent, replyMarkup, replyParameters
Methods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
SendDocument
-
SendDocument
-
-
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:
caption_entities
- 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:
disable_content_type_detection
- Disables automatic server-side content type detection for files uploaded using multipart/form-data- Returns:
SendDocument
-