From 8b79c5c76b506b936f430949bbab49bee5aba5ca Mon Sep 17 00:00:00 2001 From: slesh Date: Sun, 23 Aug 2020 01:04:01 +0300 Subject: [PATCH] Use DEFAULT_BUFFER_SIZE --- .../insanusmokrassar/TelegramBotAPI/types/files/PathedFile.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TelegramBotAPI-extensions-utils/src/jvmMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/files/PathedFile.kt b/TelegramBotAPI-extensions-utils/src/jvmMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/files/PathedFile.kt index 35a078a96f..4b11d312bf 100644 --- a/TelegramBotAPI-extensions-utils/src/jvmMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/files/PathedFile.kt +++ b/TelegramBotAPI-extensions-utils/src/jvmMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/files/PathedFile.kt @@ -13,7 +13,7 @@ fun PathedFile.asStream( fun PathedFile.asFile( telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, dest: File = File.createTempFile(this.fileUniqueId, this.filename), - defaultBufferSize: Int = 1024 + defaultBufferSize: Int = DEFAULT_BUFFER_SIZE ): File { this.asStream(telegramAPIUrlsKeeper).use { input -> FileOutputStream(dest).use { out ->