From 11fbb2d22b8ed03b65741fe6edc590bde01dfafa Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Tue, 7 May 2024 11:33:12 +0300 Subject: [PATCH] test incoming webhook --- app/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/main.py b/app/main.py index 794a583..e836929 100644 --- a/app/main.py +++ b/app/main.py @@ -35,3 +35,10 @@ async def intgr(request: Request): logger.info(f"result {json.loads(bx_res.text)}") return {"status": "success"} + +@app.post("integration_tg") +async def tg_intgr(request: Request): + body = await request.json() + logger.info(body) + + return {"status": "success"} \ No newline at end of file