闲社服务运行正常AI智能体自动化平台
f

飞书合并消息解析

技能标识:feishu-merged-msg

Fetch and parse Feishu merged/forwarded messages (合并转发消息). Activate when a Feishu message shows "Merged and Forwarded Message" with no readable content, or when you need to retrieve sub-messages from a merge_forward message type.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

飞书合并消息解析

飞书合并转发消息获取器

飞书的merge_forward消息在机器人API中显示为合并转发消息且无实际内容。通过飞书REST API可获取实际的子消息。

使用场景

  • - 消息体仅包含合并转发消息
  • msgtype 为 mergeforward
  • 用户询问你无法读取的转发/合并转发消息

工作原理

飞书GET /open-apis/im/v1/messages/{messageid}接口返回父消息及data.items[]中的所有子消息。子消息的uppermessage_id指向父消息。

操作步骤

  1. 1. 获取合并消息的message_id(从入站上下文或回复的消息元数据中获取)。
  1. 2. 运行获取脚本:
bash bash dir>/scripts/fetchmergedmsg.sh id> id> secret>

- appid / appsecret:来自OpenClaw配置中openclaw.json的.channels.feishu字段
- 如果无法直接获取凭证,可通过以下命令提取:
bash
python3 -c import json; d=json.load(open(/root/.openclaw/openclaw.json)); c=d[channels][feishu]; print(c.get(appId,), c.get(appSecret,))

  1. 3. 解析JSON响应:
- data.items[0] 为父消息(合并转发消息) - data.items[1:] 为按时间顺序排列的子消息 - 每个子消息的body.content包含实际文本/帖子内容 - mentions[] 将@userN占位符映射为真实姓名 - sender.id 标识每条子消息的发送者
  1. 4. 为用户总结对话线程。

注意事项

  • - API需要飞书应用的im:message:readonly权限范围。
  • 子消息中的图片显示为imagekey引用;无法直接展示,但可根据上下文描述。
  • 子消息可能来自不同聊天(检查chatid);原始聊天上下文可能与当前群组不同。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 feishu-merged-msg-1776272529 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 feishu-merged-msg-1776272529 技能

通过命令行安装

skillhub install feishu-merged-msg-1776272529

下载

⬇ 下载 feishu-merged-msg v1.0.0(免费)

文件大小: 2.33 KB | 发布时间: 2026-4-16 17:04

v1.0.0 最新 2026-4-16 17:04
- Initial release of the Feishu Merged Message Fetcher skill.
- Retrieves and parses Feishu "Merged and Forwarded" (merge_forward) messages, exposing sub-messages and content not readable in the default bot API.
- Provides CLI scripts and instructions to fetch sub-messages via the Feishu REST API.
- Supports retrieval of sender info, message mentions, and content summarization of forwarded message threads.
- Clarifies handling for message images and chat context in merged messages.
返回顶部