| name | relay |
| description | Send a message to ClaudeClaw (Telegram bot) via its dashboard API. Usage: /relay <message> |
Relay Message to ClaudeClaw
Send a message to the ClaudeClaw bot running on localhost:3141. The message is processed as if Steve typed it in Telegram — ClaudeClaw's Claude instance will act on it and reply in the Telegram chat.
Instructions
-
Take the user's argument as the message to send. If no argument was provided, ask what message to relay.
-
Read the dashboard token from /root/projects/claudeclaw/.env:
grep 'DASHBOARD_TOKEN' /root/projects/claudeclaw/.env | cut -d'=' -f2
-
Send via curl:
curl -s -X POST "http://localhost:3141/api/chat/send?token=${DASH_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"message\": \"<the message>\"}"
-
Report whether the send succeeded ({"ok":true}) or failed.
-
Do NOT monitor the response — ClaudeClaw replies asynchronously in Telegram.