Merge branch 'main' of ssh://192.168.3.17:2222/ishenwei/nexus
This commit is contained in:
@@ -1037,3 +1037,57 @@ obsidian help
|
||||
- Obsidian 应用必须运行才能使用 CLI
|
||||
- 如果 Obsidian 未运行,会报错或无响应
|
||||
- 内容中换行用 `\n`,制表符用 `\t`
|
||||
|
||||
## 26. OpenClaw 发送图片到 Telegram (2026-04-17)
|
||||
|
||||
### 功能
|
||||
通过 OpenClaw 将本地图片发送到 Telegram。
|
||||
|
||||
### 前置要求
|
||||
- Telegram bot 已配置(account: bot1)
|
||||
- 目标 chat ID(比利哥: 5038825565)
|
||||
|
||||
### 操作步骤
|
||||
|
||||
#### 1. 复制图片到 media 目录
|
||||
```bash
|
||||
cp /path/to/image.png ~/.openclaw/media/inbound/
|
||||
```
|
||||
|
||||
#### 2. 通过 OpenClaw 发送
|
||||
```bash
|
||||
/opt/homebrew/bin/openclaw message send \
|
||||
--account bot1 \
|
||||
--channel telegram \
|
||||
--target 5038825565 \
|
||||
--media ~/.openclaw/media/inbound/image.png \
|
||||
--message "说明文字"
|
||||
```
|
||||
|
||||
### 参数说明
|
||||
|
||||
| 参数 | 说明 |
|
||||
|------|------|
|
||||
| `--account` | Telegram bot 账号(如 bot1) |
|
||||
| `--channel telegram` | 固定为 telegram |
|
||||
| `--target` | 目标 chat ID(比利哥: 5038825565) |
|
||||
| `--media` | 图片路径 |
|
||||
| `--message` | 说明文字 |
|
||||
|
||||
### 示例
|
||||
```bash
|
||||
# 复制并发送
|
||||
cp ~/Downloads/photo.jpg ~/.openclaw/media/inbound/
|
||||
|
||||
/opt/homebrew/bin/openclaw message send --account bot1 --channel telegram --target 5038825565 --media ~/.openclaw/media/inbound/photo.jpg --message "📷 测试图片"
|
||||
```
|
||||
|
||||
### 注意事项
|
||||
- 图片支持 jpg、png、gif 等常见格式
|
||||
- 临时文件放在 `~/.openclaw/media/inbound/` 目录
|
||||
- 文件名避免中文,建议用英文或数字
|
||||
│ └── ...
|
||||
├── Canon_DIGITAL_IXUS_400/
|
||||
├── Canon_EOS_400D_DIGITAL/
|
||||
└── ...
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user