revert backgroundtasks in bot update handler
All checks were successful
Build Docs / changes (push) Successful in 4s
Build Docs / build-docs (push) Has been skipped
Build Docs / deploy-docs (push) Has been skipped

This commit is contained in:
Alexander Kalinovsky
2025-05-18 17:18:58 +07:00
parent 44240b8b04
commit ae036023e5
2 changed files with 7 additions and 15 deletions

View File

@@ -33,20 +33,12 @@ async def telegram_webhook(
logger.error("Invalid request", exc_info=True) logger.error("Invalid request", exc_info=True)
return Response(status_code=400) return Response(status_code=400)
await app.dp.feed_webhook_update( background_tasks.add_task(
bot=app.bot, feed_bot_update,
update=update,
db_session=db_session,
app=app, app=app,
update=update,
app_state=request.state, app_state=request.state,
) )
# background_tasks.add_task(
# feed_bot_update,
# app=app,
# update=update,
# app_state=request.state,
# )
return Response(status_code=200) return Response(status_code=200)