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

Function tg_send

IntelOSINT.py:19316–19322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19314
19315@app.route('/api/tg/send_code', methods=['POST'])
19316def tg_send():
19317 denied = require_sensitive_request("tg_send_code", limit=5, window=300)
19318 if denied:
19319 return denied
19320 d = request.get_json(silent=True) or {}
19321 s, m = run_async(core.tg_send_code(d.get('tg_id'), d.get('tg_hash'), d.get('phone')))
19322 return jsonify({"status": s, "error": m, "message": m})
19323
19324@app.route('/api/tg/verify', methods=['POST'])
19325def tg_verify():

Callers

nothing calls this directly

Calls 3

run_asyncFunction · 0.85
tg_send_codeMethod · 0.80

Tested by

no test coverage detected