跳到正文
TakoAPI
返回技能列表

macos-screenshot-telegram

由 hoyin258 提供

Coding Agents & IDEs
480下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Take a screenshot on macOS and send it to Telegram.

描述

该技能的功能

Captures the macOS screen and sends the screenshot to a Telegram chat via the Bot API. Works around a known OpenClaw bug (#15541) that prevents the built-in message tool from sending media files.

Uses curl directly against the Telegram Bot API instead of OpenClaw's message tool, which silently drops media despite returning success.

何时使用

  • Sharing a bug report screenshot instantly via Telegram
  • Sending screen captures to a Telegram group without leaving the terminal
  • Remotely documenting what's on screen during a session
  • Quickly sharing UI mockups or error dialogs over Telegram DM
  • Automating screen capture delivery as part of a workflow

示例工作流

输入

User asks: take a screenshot and send it to my Telegram chat ID 987654321 using profile main

智能体
  1. 1

    Capture screen with /usr/sbin/screencapture -x /tmp/screenshot.png

  2. 2

    Copy file to OpenClaw workspace at ~/.openclaw/workspace-main/screenshot.png

  3. 3

    Read bot token from ~/.openclaw-main/openclaw.json

  4. 4

    Send image via curl POST to https://api.telegram.org/bot{token}/sendPhoto with chat_id and photo fields

输出

Screenshot delivered to Telegram chat 987654321

前置要求

  • Telegram bot token from @BotFather
  • Telegram chat ID (obtainable via @userinfobot)
  • OpenClaw profile config with telegram.botToken and allowFrom fields set

安装

clawhub install hoyin258/macos-screenshot-telegram

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接