summaryrefslogtreecommitdiff
path: root/test_send.py
blob: fa27e99561669727c05580a9dde849cd888fc004 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)