/install macos-screenshot-telegram
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 \x3Coutput-path> -
Copy to workspace (required - OpenClaw has security restriction):
cp \x3Csource> \x3Cworkspace>/screenshot.png -
Send via Telegram Bot API (bypasses buggy message tool):
BOT_TOKEN=$(grep botToken \x3Cconfig-path> | sed 's/.*"botToken": *"\([^"]*\)".*/\1/') curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendPhoto" \ -F "chat_id=\x3Ctarget-chat-id>" \ -F "photo=@\x3Cworkspace>/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-\x3Cprofile>/openclaw.json - Workspace:
~/.openclaw/workspace-\x3Cprofile>/
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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install macos-screenshot-telegram - 安装完成后,直接呼叫该 Skill 的名称或使用
/macos-screenshot-telegram触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 851 次。
如何安装 MAC OS screenshot to telegram?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install macos-screenshot-telegram」即可一键安装,无需额外配置。
MAC OS screenshot to telegram 是免费的吗?
是的,MAC OS screenshot to telegram 完全免费(开源免费),可自由下载、安装和使用。
MAC OS screenshot to telegram 支持哪些平台?
MAC OS screenshot to telegram 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 MAC OS screenshot to telegram?
由 hoyin258(@hoyin258)开发并维护,当前版本 v1.0.0。