From cdf122d68786738eab53d667e93db4c874a90406 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Mon, 28 Apr 2025 10:49:29 +0330 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20missing=20return=20stateme?= =?UTF-8?q?nt=20in=20telegram=5Fstop=5Fapi=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/scripts/webpanel/routers/api/v1/config/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/webpanel/routers/api/v1/config/telegram.py b/core/scripts/webpanel/routers/api/v1/config/telegram.py index a504187..b1bf70e 100644 --- a/core/scripts/webpanel/routers/api/v1/config/telegram.py +++ b/core/scripts/webpanel/routers/api/v1/config/telegram.py @@ -35,7 +35,7 @@ async def telegram_stop_api(): try: cli_api.stop_telegram_bot() + return DetailResponse(detail='Telegram bot stopped successfully.') except Exception as e: raise HTTPException(status_code=400, detail=f'Error: {str(e)}') -# TODO: Maybe would be nice to have a status endpoint