From 6892599058fae7e623626d59b012edb58a3fd0ae Mon Sep 17 00:00:00 2001 From: "A.Shpak" Date: Tue, 12 Mar 2024 20:52:30 +0300 Subject: [PATCH] - --- chatushka/_transport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatushka/_transport.py b/chatushka/_transport.py index f54a233..e35ad5d 100644 --- a/chatushka/_transport.py +++ b/chatushka/_transport.py @@ -86,13 +86,13 @@ async def get_updates( if self._timeout: params["timeout"] = self._timeout try: - response = self._api_request( + response = await self._api_request( api_method="getUpdates", **params, ) except RequestError: return [], offset - results = [Update.model_validate(entry) for entry in await response] + results = [Update.model_validate(entry) for entry in response] if results: offset = results[-1].update_id + 1 return results, offset