From 938688741d7e8d6321d93a816fd63d44c5487514 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Fri, 24 Apr 2020 10:09:39 +0300 Subject: [PATCH] fixed gather awaiting --- aiogram/dispatcher/dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/dispatcher/dispatcher.py b/aiogram/dispatcher/dispatcher.py index 950ce60f..9f5f6a22 100644 --- a/aiogram/dispatcher/dispatcher.py +++ b/aiogram/dispatcher/dispatcher.py @@ -336,7 +336,7 @@ class Dispatcher(DataMixin, ContextInstanceMixin): need_to_call.append(response.execute_response(self.bot)) if need_to_call: try: - asyncio.gather(*need_to_call) + await asyncio.gather(*need_to_call) except TelegramAPIError: log.exception('Cause exception while processing updates.')