🔧 Fix missing return statement in telegram_stop_api function

This commit is contained in:
Whispering Wind
2025-04-28 10:49:29 +03:30
committed by GitHub
parent 15780cf43a
commit cdf122d687

View File

@ -35,7 +35,7 @@ async def telegram_stop_api():
try: try:
cli_api.stop_telegram_bot() cli_api.stop_telegram_bot()
return DetailResponse(detail='Telegram bot stopped successfully.')
except Exception as e: except Exception as e:
raise HTTPException(status_code=400, detail=f'Error: {str(e)}') raise HTTPException(status_code=400, detail=f'Error: {str(e)}')
# TODO: Maybe would be nice to have a status endpoint