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 SummaryConstructorsConstructorDescriptionSendDocument(Object chat_id, File document, Api api) RequiredSendDocument(Object chat_id, String document, Api api) Required
- 
Method SummaryModifier and TypeMethodDescriptionOptionalcaptionEntities(MessageEntity[] caption_entities) OptionaldisableContentTypeDetection(boolean disable_content_type_detection) OptionalOptionalOptionalMethods inherited from class io.github.natanimn.telebof.requests.send.SendBuilderallowPaidBroadcast, businessConnectionId, directMessagesTopicId, disableNotification, disableWebPagePreview, messageEffectId, messageThreadId, parseMode, protectContent, replyMarkup, replyParameters, suggestedPostParametersMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequestexec
- 
Constructor Details- 
SendDocument
- 
SendDocument
 
- 
- 
Method Details- 
captionOptional- Parameters:
- caption- Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing
- Returns:
- SendDocument
 
- 
captionEntitiesOptional- Parameters:
- caption_entities- A list of special entities that appear in the caption, which can be specified instead of parse_mode
- Returns:
- SendDocument
 
- 
thumbnailOptional- 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
 
- 
thumbnailOptional- 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
 
- 
disableContentTypeDetectionOptional- Parameters:
- disable_content_type_detection- Disables automatic server-side content type detection for files uploaded using multipart/form-data
- Returns:
- SendDocument
 
 
-