Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
A.Shpak committed Mar 12, 2024
1 parent 177debb commit 6892599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chatushka/_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6892599

Please sign in to comment.