Install
openclaw skills install macos-screenshot-telegramTake a screenshot on macOS and send it to Telegram. Use when the user asks to capture their screen, take a screenshot, or send a screen capture to Telegram. Works around OpenClaw's message tool bug (#15541) that fails to send media.
openclaw skills install macos-screenshot-telegram/newbot 創建新 bot1234567890:ABCdefGHIjklMNOpqrsTUVwxyz)響你既 OpenClaw profile config 度加入:
{
"telegram": {
"botToken": "YOUR_BOT_TOKEN_HERE",
"allowFrom": ["YOUR_CHAT_ID"]
}
}
記住你用既 profile 名(例如 main、rescue),之後用既時候補返上去。
This skill captures the macOS screen and sends it directly via Telegram Bot API.
Capture screenshot using macOS built-in command:
/usr/sbin/screencapture -x <output-path>
Copy to workspace (required - OpenClaw has security restriction):
cp <source> <workspace>/screenshot.png
Send via Telegram Bot API (bypasses buggy message tool):
BOT_TOKEN=$(grep botToken <config-path> | sed 's/.*"botToken": *"\([^"]*\)".*/\1/')
curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendPhoto" \
-F "chat_id=<target-chat-id>" \
-F "photo=@<workspace>/screenshot.png"
When using this skill, ask the user for:
target-chat-id: The Telegram chat ID to send to (e.g., user's ID for DM)profile: The OpenClaw profile name (e.g., "main", "rescue")~/.openclaw-<profile>/openclaw.json~/.openclaw/workspace-<profile>/For example, if your profile is "main", paths would be:
~/.openclaw-main/openclaw.json~/.openclaw/workspace-main/message tool in OpenClaw has a bug (#15541) that returns success but doesn't send media