revert backgroundtasks in bot update handler
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user