MAC OS screenshot to telegram
Take 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....
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 518 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
The name/description (send macOS screenshots to Telegram) matches the implementation: the script captures the screen, reads a Telegram bot token from the OpenClaw profile config, and posts the image to the Telegram Bot API. Asking for a profile and chat ID is consistent with using per-profile config files.
Instruction Scope
The SKILL.md and included script stay within the stated scope (capture screen, copy to workspace, read botToken from ~/.openclaw-<profile>/openclaw.json, then POST to api.telegram.org). Minor inconsistencies: the registry metadata lists no required binaries even though the instructions/scripts rely on /usr/sbin/screencapture and curl; SKILL.md mentions an explicit cp step while the script writes the screenshot directly into the workspace path. These are implementation nits, not malicious scope creep.
Install Mechanism
Instruction-only skill with an included shell script and no install spec — minimal disk footprint and no external downloads. No high-risk install behavior present.
Credentials
The only secret the skill relies on is the Telegram bot token stored in the OpenClaw profile config; this is necessary to call the Bot API. The skill does not request unrelated credentials or environment variables. Note: the script reads the token directly from the user's config file, so possession of that file implies the ability to send messages as the bot.
Persistence & Privilege
always is false and the skill doesn't attempt to modify other skills, agent-wide settings, or persist itself beyond the provided files. It runs only when invoked.
Assessment
This skill appears to do exactly what it says: capture your macOS screen and send it to a Telegram chat using a bot token stored in your OpenClaw profile config. Before installing/running: 1) Inspect the script (scripts/screenshot-telegram.sh) yourself — it is short and readable. 2) Ensure you trust the bot token in ~/.openclaw-<profile>/openclaw.json and that the file permissions restrict access (others with read access could reuse the token). 3) Confirm you want screenshots sent to the specified Telegram chat (sensitive info on screen will be transmitted). 4) Make sure /usr/sbin/screencapture and curl are present on your system (the registry metadata did not declare required binaries). 5) Prefer creating a dedicated bot with minimal permissions and an allow-list chat ID. If any of these raise concerns, do not run the script or remove the bot token from the profile until you are comfortable.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
Setup (Prerequisites)
1. Telegram Bot Token
- 搵 @BotFather on Telegram
- Send
/newbot創建新 bot - 拎個 bot token(好似
1234567890:ABCdefGHIjklMNOpqrsTUVwxyz)
2. 搵 Telegram Chat ID
- 個人 ID: 搵 @userinfobot 或者 forward message 俾 @userinfobot
- Group ID: Forward 任何 message 俾 @userinfobot
3. OpenClaw Config
響你既 OpenClaw profile config 度加入:
{
"telegram": {
"botToken": "YOUR_BOT_TOKEN_HERE",
"allowFrom": ["YOUR_CHAT_ID"]
}
}
4. Profile Naming
記住你用既 profile 名(例如 main、rescue),之後用既時候補返上去。
macOS Screenshot to Telegram
This skill captures the macOS screen and sends it directly via Telegram Bot API.
Workflow
-
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"
Required Parameters
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")
How to Find Paths
- Config file:
~/.openclaw-<profile>/openclaw.json - Workspace:
~/.openclaw/workspace-<profile>/
For example, if your profile is "main", paths would be:
- Config:
~/.openclaw-main/openclaw.json - Workspace:
~/.openclaw/workspace-main/
Notes
- The
messagetool in OpenClaw has a bug (#15541) that returns success but doesn't send media - Always use curl with Telegram Bot API directly for reliable media delivery
- The screenshot must be copied to workspace first due to OpenClaw's allowed directory security restriction
- This skill is profile-agnostic - just pass the correct profile name
Files
2 totalSelect a file
Select a file to preview.
Comments
Loading comments…
