# sendDocument - docs

docs / com.github.insanusmokrassar.TelegramBotAPI.extensions.api.send.media / sendDocument

# sendDocument

(common) `suspend fun RequestsExecutor.sendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DocumentContent>` (source)
`suspend fun RequestsExecutor.sendDocument(chatId: ChatIdentifier, document: DocumentFile, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DocumentContent>` (source)