← 返回
沟通协作 Key

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....
在 macOS 上截取屏幕并发送到 Telegram。当用户请求截取屏幕、拍摄截图或发送屏幕截图时使用。
hoyin258
沟通协作 clawhub v1.0.0 1 版本 99924.9 Key: 需要
★ 0
Stars
📥 1,331
下载
💾 33
安装
1
版本
#latest

概述

Setup (Prerequisites)

1. Telegram Bot Token

  1. 搵 @BotFather on Telegram
  2. Send /newbot 創建新 bot
  3. 拎個 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 名(例如 mainrescue),之後用既時候補返上去。


macOS Screenshot to Telegram

This skill captures the macOS screen and sends it directly via Telegram Bot API.

Workflow

  1. Capture screenshot using macOS built-in command:

```bash

/usr/sbin/screencapture -x

```

  1. Copy to workspace (required - OpenClaw has security restriction):

```bash

cp /screenshot.png

```

  1. Send via Telegram Bot API (bypasses buggy message tool):

```bash

BOT_TOKEN=$(grep botToken | sed 's/."botToken": "\([^"]\)"./\1/')

curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendPhoto" \

-F "chat_id=" \

-F "photo=@/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

  1. Config file: ~/.openclaw-/openclaw.json
  2. Workspace: ~/.openclaw/workspace-/

For example, if your profile is "main", paths would be:

  • Config: ~/.openclaw-main/openclaw.json
  • Workspace: ~/.openclaw/workspace-main/

Notes

  • The message tool 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 06:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,470
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,629
content-creation

For using minimax mcp to generate audio, image, video to telegram.

hoyin258
使用 MiniMax MCP 生成图像、音频和视频并发送至 Telegram。适用于用户希望利用 MiniMax 创作媒体并通过 Telegram 投递的场景。
★ 0 📥 1,452