diff --git a/aiogram/dispatcher/dispatcher.py b/aiogram/dispatcher/dispatcher.py index f4e6b340..da68158d 100644 --- a/aiogram/dispatcher/dispatcher.py +++ b/aiogram/dispatcher/dispatcher.py @@ -309,9 +309,9 @@ class Dispatcher(Router): :return: """ async for update in self._listen_updates( - bot, - polling_timeout=polling_timeout, - backoff_config=backoff_config, + bot, + polling_timeout=polling_timeout, + backoff_config=backoff_config, allowed_updates=allowed_updates, ): handle_update = self._process_update(bot=bot, update=update, **kwargs) diff --git a/aiogram/utils/handlers_in_use.py b/aiogram/utils/handlers_in_use.py index 324feaf1..d7b26217 100644 --- a/aiogram/utils/handlers_in_use.py +++ b/aiogram/utils/handlers_in_use.py @@ -5,8 +5,8 @@ from typing import List, cast from aiogram.dispatcher.dispatcher import Dispatcher AIOGRAM_INTERNAL_HANDLERS = [ - 'update', - 'error', + 'update', + 'error', ]