✓ Verified 💻 Development ✓ Enhanced Data

Macos Screenshot Telegram

Take a screenshot on macOS and send it to Telegram.

Rating
4.9 (160 reviews)
Downloads
18,561 downloads
Version
1.0.0

Overview

Take a screenshot on macOS and send it to Telegram.

Complete Documentation

View Source →

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 度加入:

json
{
  "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

  • Capture screenshot using macOS built-in command:
bash
/usr/sbin/screencapture -x <output-path>
  • Copy to workspace (required - OpenClaw has security restriction):
bash
cp <source> <workspace>/screenshot.png
  • Send via Telegram Bot API (bypasses buggy message tool):
bash
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-/openclaw.json
  • 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

Installation

Terminal bash

openclaw install macos-screenshot-telegram
    
Copied!

💻Code Examples

}

.txt
## 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

1. **Capture screenshot** using macOS built-in command:
example.json
{
  "telegram": {
    "botToken": "YOUR_BOT_TOKEN_HERE",
    "allowFrom": ["YOUR_CHAT_ID"]
  }
}
example.sh
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"

Tags

#coding_agents-and-ides

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author hoyin258
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install macos-screenshot-telegram