mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2026-02-04 16:50:38 +03:00
add queue tests
This commit is contained in:
@@ -19,10 +19,11 @@ async def healthcheck() -> ORJSONResponse:
|
||||
|
||||
|
||||
@router.post(
|
||||
f"/{settings.bot_webhook_url}",
|
||||
f"/{settings.TELEGRAM_API_TOKEN}",
|
||||
name="system:process_bot_updates",
|
||||
status_code=status.HTTP_202_ACCEPTED,
|
||||
summary="process bot updates",
|
||||
include_in_schema=False,
|
||||
)
|
||||
async def process_bot_updates(request: Request) -> ORJSONResponse:
|
||||
await request.app.state.queue.put_updates_on_queue(request)
|
||||
|
||||
Reference in New Issue
Block a user