Fix missing error logging (#1458)

* Fix missing error logging 

No error logging when handle_in_background=True

* add CHANGES
This commit is contained in:
unintended 2024-04-23 13:59:13 +03:00 committed by GitHub
parent 4729978c60
commit f1c9fc50f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

2
CHANGES/1458.bugfix.rst Normal file
View file

@ -0,0 +1,2 @@
Added missing error handling to :code:`_background_feed_update` (when in :code:`handle_in_background=True` webhook mode)

View file

@ -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(