//[docs](../../../index.md)/[dev.inmo.tgbotapi.requests.send.media](../index.md)/[SendDocumentData](index.md)
# SendDocumentData
[common] data class [SendDocumentData](index.md) : [DataRequest](../../dev.inmo.tgbotapi.requests.send.media.base/-data-request/index.md)<[ContentMessage](../../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md)<[DocumentContent](../../dev.inmo.tgbotapi.types.message.content.media/-document-content/index.md)>> , [SendMessageRequest](../../dev.inmo.tgbotapi.requests.send.abstracts/-send-message-request/index.md)<[ContentMessage](../../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md)<[DocumentContent](../../dev.inmo.tgbotapi.types.message.content.media/-document-content/index.md)>> , [ReplyingMarkupSendMessageRequest](../../dev.inmo.tgbotapi.requests.send.abstracts/-replying-markup-send-message-request/index.md)<[ContentMessage](../../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md)<[DocumentContent](../../dev.inmo.tgbotapi.types.message.content.media/-document-content/index.md)>> , [TextableSendMessageRequest](../../dev.inmo.tgbotapi.requests.send.abstracts/-textable-send-message-request/index.md)<[ContentMessage](../../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md)<[DocumentContent](../../dev.inmo.tgbotapi.types.message.content.media/-document-content/index.md)>> , [ThumbedSendMessageRequest](../../dev.inmo.tgbotapi.requests.send.abstracts/-thumbed-send-message-request/index.md)<[ContentMessage](../../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md)<[DocumentContent](../../dev.inmo.tgbotapi.types.message.content.media/-document-content/index.md)>>
Use this method to send general files. On success, the sent [ContentMessage](../../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md) with [DocumentContent](../../dev.inmo.tgbotapi.types.message.content.media/-document-content/index.md) is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
## See also
common
| | |
|---|---|
| [dev.inmo.tgbotapi.types.message.abstracts.ContentMessage](../../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md)| |
| [dev.inmo.tgbotapi.types.message.content.media.DocumentContent](../../dev.inmo.tgbotapi.types.message.content.media/-document-content/index.md)| |
## Parameters
common
| | |
|---|---|
| disableContentTypeDetection|
Disables automatic server-side content type detection for [document](../../dev.inmo.tgbotapi.requests.abstracts/-multipart-file/index.md)
|
## Functions
| Name | Summary |
|---|---|
| [method](method.md)| [common]
Content
open override fun [method](method.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
|
## Properties
| Name | Summary |
|---|---|
| [allowSendingWithoutReply](allow-sending-without-reply.md)| [common] open override val [allowSendingWithoutReply](allow-sending-without-reply.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? = null
|
| [chatId](chat-id.md)| [common] open override val [chatId](chat-id.md): [ChatIdentifier](../../dev.inmo.tgbotapi.types/-chat-identifier/index.md)
|
| [disableContentTypeDetection](disable-content-type-detection.md)| [common] val [disableContentTypeDetection](disable-content-type-detection.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? = nullDisables automatic server-side content type detection for [document](../../dev.inmo.tgbotapi.requests.abstracts/-multipart-file/index.md)
|
| [disableNotification](disable-notification.md)| [common] open override val [disableNotification](disable-notification.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false
|
| [document](document.md)| [common] val [document](document.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null
|
| [entities](entities.md)| [common] open override val [entities](entities.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[TextSource](../../dev.inmo.tgbotapi.CommonAbstracts/-text-source/index.md)>?
|
| [parseMode](parse-mode.md)| [common] open override val [parseMode](parse-mode.md): [ParseMode](../../dev.inmo.tgbotapi.types.ParseMode/-parse-mode/index.md)? = null
|
| [replyMarkup](reply-markup.md)| [common] open override val [replyMarkup](reply-markup.md): [KeyboardMarkup](../../dev.inmo.tgbotapi.types.buttons/-keyboard-markup/index.md)? = null
|
| [replyToMessageId](reply-to-message-id.md)| [common] open override val [replyToMessageId](reply-to-message-id.md): [MessageIdentifier](../../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FMessageIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)? = null
|
| [requestSerializer](request-serializer.md)| [common] open override val [requestSerializer](request-serializer.md): <*>
|
| [resultDeserializer](result-deserializer.md)| [common] open override val [resultDeserializer](result-deserializer.md): <[ContentMessage](../../dev.inmo.tgbotapi.types.message.abstracts/-content-message/index.md)<[DocumentContent](../../dev.inmo.tgbotapi.types.message.content.media/-document-content/index.md)>>
|
| [text](text.md)| [common] open override val [text](text.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null
|
| [thumb](thumb.md)| [common] open override val [thumb](thumb.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null
|