Skill flagged — review recommended

ClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.

Tg Notify

v1.0.3

tg-notify

0· 350· 4 versions· 0 current· 0 all-time· Updated 19h ago· MIT-0

Install

openclaw skills install tg-notify

Telegram Notify Skill

Send messages to any Telegram user by chat ID using the OpenClaw bot.

Bot Token

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)")

Send a Message

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"
  }'

Send to Multiple Recipients

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

Known Team Members

NameTelegram ID
Islam6330057147

Add others to USER.md as they interact with the bot.

Notes

  • parse_mode: HTML supports <b>bold</b>, <i>italic</i>, <code>code</code>
  • Bot can only message users who have previously started a chat with the bot
  • Check response ok: true to confirm delivery; handle errors gracefully
  • Token is always read from ~/.openclaw/openclaw.json at runtime — never stored in this file

Version tags

latestvk974813b5d5g21s7smdtjgymmd82w29c