SendDocument

fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, threadId: MessageThreadId? = null, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>>
fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, entities: TextSourcesList, threadId: MessageThreadId? = null, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>>

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

Parameters

disableContentTypeDetection

Disables automatic server-side content type detection for document