From 2b73cdbbc49afd47930a3972adb9e2a8c42c27be Mon Sep 17 00:00:00 2001 From: uburuntu Date: Wed, 28 Jul 2021 19:33:57 +0300 Subject: [PATCH] fix: not async .close() for aiohttp.ClientResponse --- 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 c974025a..a7bbf1bd 100644 --- a/aiogram/types/input_file.py +++ b/aiogram/types/input_file.py @@ -182,7 +182,7 @@ class _WebPipe: async def close(self): if self._response and not self._response.closed: - await self._response.close() + self._response.close() if self._session and not self._session.closed: await self._session.close() if self._lock.locked():