()
| 479 | |
| 480 | @app.route('/api/tg/check_status', methods=['POST']) |
| 481 | def 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']) |
| 491 | def tg_stop_monitoring(): |
nothing calls this directly
no test coverage detected