From a5d983a52216ad9da9d07cefdcaaae90d5ba8f15 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Mon, 28 Aug 2017 16:08:09 +0300 Subject: [PATCH] Oops. Repair Dispatcher._process_pooling_updates --- aiogram/dispatcher/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/aiogram/dispatcher/__init__.py b/aiogram/dispatcher/__init__.py index 3933a04a..b9a04fad 100644 --- a/aiogram/dispatcher/__init__.py +++ b/aiogram/dispatcher/__init__.py @@ -188,12 +188,11 @@ class Dispatcher: :param updates: list of updates. """ need_to_call = [] - for update in await self.process_updates(updates): - for responses in update: - for response in responses: - if not isinstance(response, BaseResponse): - continue - need_to_call.append(response.execute_response(self.bot)) + for response in await self.process_updates(updates): + for response in response: + if not isinstance(response, BaseResponse): + continue + need_to_call.append(response.execute_response(self.bot)) if need_to_call: try: asyncio.gather(*need_to_call)