MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / tg_check_status

Function tg_check_status

IntelOSINT.py:481–488  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

479
480@app.route('/api/tg/check_status', methods=['POST'])
481def tg_check_status():
482 denied = require_sensitive_request("tg_check_status", limit=60, window=60)
483 if denied:
484 return denied
485 target = request.json.get('target')
486 if target in tg_monitor.active_tasks:
487 return jsonify({"status": "ok", "data": tg_monitor.status_data.get(target, {"online": False, "last_seen": "Attendere..."})})
488 return jsonify({"status": "stopped"})
489
490@app.route('/api/tg/stop_monitoring', methods=['POST'])
491def tg_stop_monitoring():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected