From 8ebc6c53077a4826109f2ceb4c5625efe6b6522e Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Tue, 31 Mar 2026 23:27:05 -0500 Subject: Claude Bridge Server - broker, dispatcher, multi-user support --- test_send.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test_send.py (limited to 'test_send.py') diff --git a/test_send.py b/test_send.py new file mode 100644 index 0000000..fa27e99 --- /dev/null +++ b/test_send.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python3 +"""Quick test: send a Telegram message via broker""" +import os +import httpx + +API_SECRET = os.environ["API_SECRET"] +resp = httpx.post( + "http://127.0.0.1:8000/telegram/send", + headers={"Authorization": f"Bearer {API_SECRET}"}, + json={"message": "Claude Bridge 已上线! 这是测试消息。"}, +) +print(resp.status_code, resp.text) -- cgit v1.2.3