diff --git a/CHANGES/1458.bugfix.rst b/CHANGES/1458.bugfix.rst new file mode 100644 index 00000000..3b986d82 --- /dev/null +++ b/CHANGES/1458.bugfix.rst @@ -0,0 +1,2 @@ +Added missing error handling to :code:`_background_feed_update` (when in :code:`handle_in_background=True` webhook mode) + diff --git a/aiogram/dispatcher/dispatcher.py b/aiogram/dispatcher/dispatcher.py index 4aa61a47..8b6987cb 100644 --- a/aiogram/dispatcher/dispatcher.py +++ b/aiogram/dispatcher/dispatcher.py @@ -186,7 +186,7 @@ class Dispatcher(Router): :param kwargs: """ parsed_update = Update.model_validate(update, context={"bot": bot}) - return await self.feed_update(bot=bot, update=parsed_update, **kwargs) + return await self._feed_webhook_update(bot=bot, update=parsed_update, **kwargs) @classmethod async def _listen_updates(