mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-02 22:59:48 +00:00
Use DEFAULT_BUFFER_SIZE
This commit is contained in:
@@ -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 ->
|
||||
|
Reference in New Issue
Block a user