app state fix
This commit is contained in:
@@ -30,12 +30,14 @@ async def telegram_webhook(
|
||||
logger.error("Invalid request", exc_info=True)
|
||||
return Response(status_code=400)
|
||||
try:
|
||||
state_kw = request.state._state #TODO: avoid accessing private attribute
|
||||
|
||||
await app.dp.feed_webhook_update(
|
||||
app.bot,
|
||||
update,
|
||||
db_session=db_session,
|
||||
app=app,
|
||||
**(request.state if request.state else {}),
|
||||
**(state_kw or {}),
|
||||
)
|
||||
except Exception:
|
||||
logger.error("Error processing update", exc_info=True)
|
||||
|
||||
Reference in New Issue
Block a user