From b808c48789aefce9f09c236f5065d57bfd4d6c49 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 8 Apr 2018 17:23:58 +0300 Subject: [PATCH] Use CHUNK_SIZE. [2] --- aiogram/types/input_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/types/input_file.py b/aiogram/types/input_file.py index aaf0bf86..9d42c6b7 100644 --- a/aiogram/types/input_file.py +++ b/aiogram/types/input_file.py @@ -139,7 +139,7 @@ class InputFile(base.TelegramObject): self.file.seek(0) @classmethod - async def _process_stream(cls, response, writer, chunk_size=65536): + async def _process_stream(cls, response, writer, chunk_size=CHUNK_SIZE): """ Transfer data