返回顶部
f

feishu-send-media

飞书媒体发送器 — 上传图片或视频并以媒体消息发送到飞书聊天中。图片直接预览,视频支持播放。补齐飞书渠道缺失的媒体投递能力。| Feishu Media Sender — Upload & send images/videos via Feishu OpenAPI with in-chat preview/playback.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
80
下载量
0
收藏
概述
安装方式
版本历史

feishu-send-media

# Feishu Media Sender | 飞书媒体发送器 Upload images or videos to Feishu and send as media messages with in-chat preview/playback. 将图片或视频上传至飞书并以媒体消息发送,聊天中可直接预览/播放。 ## Quick Start ```bash # Send image (auto-detect) python3 scripts/feishu_send_media.py --file photo.jpg --receive-id ou_xxx # Send video python3 scripts/feishu_send_media.py --file video.mp4 --receive-id ou_xxx # Explicit type override python3 scripts/feishu_send_media.py --file clip.gif --receive-id ou_xxx --type video ``` ## Arguments | Param | Required | Description | |-------|----------|-------------| | `--file` | ✅ | Local file path (absolute) | | `--receive-id` | optional | Target `chat_id` or `open_id`. Falls back to `OPENCLAW_CHAT_ID` env var | | `--receive-id-type` | optional | Auto-detected from prefix: `oc_` → chat_id, `ou_` → open_id | | `--type` | optional | `image` or `video`. Auto-detected from file extension if omitted | ### Supported Formats **Image:** JPG, JPEG, PNG, WEBP, GIF, BMP, ICO, TIFF, HEIC (max 10 MB) **Video:** MP4, MOV, AVI, MKV, WEBM (max 30 MB, uploaded as MP4) ## How It Works **Images:** 1. Upload via `/im/v1/images` → get `image_key` 2. Send message with `msg_type=image`, content `{"image_key": "..."}` **Videos:** 1. Upload via `/im/v1/files` (file_type=mp4) → get `file_key` 2. Send message with `msg_type=media`, content `{"file_key": "..."}` Credentials are auto-read from `~/.openclaw/openclaw.json`. ## API Reference - [Upload Image](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/image/create) - [Upload File](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/file/create) - [Send Message](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/create)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 feishu-media-sender-1775974441 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 feishu-media-sender-1775974441 技能

通过命令行安装

skillhub install feishu-media-sender-1775974441

下载 Zip 包

⬇ 下载 feishu-send-media v1.0.0

文件大小: 5.15 KB | 发布时间: 2026-4-13 10:16

v1.0.0 最新 2026-4-13 10:16
Initial release: upload images (preview) and videos (playback) to Feishu chat via OpenAPI

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部