Install
openclaw skills install tg-notifytg-notify
openclaw skills install tg-notifySend messages to any Telegram user by chat ID using the OpenClaw bot.
Read dynamically from openclaw.json — never hardcode:
BOT_TOKEN=$(node -e "const c=require(process.env.HOME+'/.openclaw/openclaw.json');console.log(c.channels.telegram.botToken)")
BOT_TOKEN=$(node -e "const c=require(process.env.HOME+'/.openclaw/openclaw.json');console.log(c.channels.telegram.botToken)")
curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
-H "Content-Type: application/json" \
-d '{
"chat_id": "<TELEGRAM_USER_ID>",
"text": "<MESSAGE>",
"parse_mode": "HTML"
}'
BOT_TOKEN=$(node -e "const c=require(process.env.HOME+'/.openclaw/openclaw.json');console.log(c.channels.telegram.botToken)")
for CHAT_ID in 111111111 222222222; do
curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
-H "Content-Type: application/json" \
-d "{\"chat_id\": \"${CHAT_ID}\", \"text\": \"<MESSAGE>\", \"parse_mode\": \"HTML\"}"
done
| Name | Telegram ID |
|---|---|
| Islam | 6330057147 |
Add others to USER.md as they interact with the bot.
parse_mode: HTML supports <b>bold</b>, <i>italic</i>, <code>code</code>ok: true to confirm delivery; handle errors gracefully~/.openclaw/openclaw.json at runtime — never stored in this file