1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-17 22:03:48 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.requests.send.media/-send-document.md
2021-03-17 15:18:37 +00:00

9.4 KiB

//docs/dev.inmo.tgbotapi.requests.send.media/SendDocument

SendDocument

[common]
Content
fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, caption: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>>
More info

Use this method to send general files. On success, the sent ContentMessage with DocumentContent 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.content.media.DocumentContent

Parameters

common

disableContentTypeDetection

Disables automatic server-side content type detection for document

[common]
Content
fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>>
More info

Use this method to send general files. On success, the sent ContentMessage with DocumentContent 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.content.media.DocumentContent

Parameters

common

disableContentTypeDetection

Disables automatic server-side content type detection for document