Feishu Img Send — Feishu Img 发送
v3飞书图片发送 - 使用API直接发送图片到飞书 / 发送 images to Feishu via API
1· 625·0 当前·0 累计
下载技能包
License
MIT-0
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install feishu-img-send
镜像加速npx clawhub@latest install feishu-img-send --registry https://cn.longxiaskill.com 镜像可用
技能文档
飞书图片发送 / Feishu Image 发送er
通过飞书开放平台API发送图片。
使用方法 / Usage 命令行 # 发送图片 ./scripts/发送.sh <图片路径> <用户ID>
# 示例 ./scripts/发送.sh /tmp/test.png ou_xxxxxxxx
Python from feishu_image 导入 FeishuImage发送er
发送er = FeishuImage发送er() 发送er.发送_image("/tmp/test.png", "ou_xxxxxxxx")
配置 / Configuration
脚本已内置应用_ID和应用_SECRET,无需额外配置。
原理 / How It Works 获取 tenant_访问_令牌 上传图片到飞书获取 image_key 使用 image_key 发送图片消息 API调用 POST /open-APIs/auth/v3/tenant_访问_令牌/internal POST /open-APIs/im/v1/images POST /open-APIs/im/v1/messages
权限要求 im:resource im:message 更新日志 v1.0.0: 初始版本