🔧 Fix missing return statement in telegram_stop_api function
This commit is contained in:
@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user