← 返回
沟通协作 Key

Feishu Thread Forward

Forward Feishu thread/topic to a user, group, or topic via REST API. Activate when: forwarding a thread/topic to another chat, sharing a topic post to a diff...
通过REST API将飞书话题/主题转发给用户、群组或话题。适用场景:将话题转发至其他会话、分享话题帖子至不同目标等。
deadblue22
沟通协作 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 696
下载
💾 13
安装
1
版本
#latest

概述

Feishu Thread Forward

Forward a Feishu thread (话题) to a user, group, or another topic using the Feishu Open API.

When to Use

  • User asks to forward/share a thread or topic to another group or user
  • You need to cross-post a topic post from one group to another
  • The built-in message tool cannot do thread-level forwarding

API

POST https://open.feishu.cn/open-apis/im/v1/threads/{thread_id}/forward?receive_id_type={type}

Parameters

ParamLocationRequiredDescription
----------------------------------------
thread_idpathyesThread ID to forward (format: omt_xxxxx)
receive_id_typequeryyesTarget ID type: open_id, chat_id, user_id, union_id, email, thread_id
receive_idbodyyesTarget ID matching the receive_id_type
uuidquerynoIdempotency key (max 50 chars, dedup within 1 hour)

Headers

Authorization: Bearer {tenant_access_token}
Content-Type: application/json

How to Get thread_id

A message in a topic group has a thread_id field. Retrieve it via:

GET https://open.feishu.cn/open-apis/im/v1/messages/{message_id}

The response data.items[0].thread_id contains the thread ID (e.g., omt_1accc5a75c0f9b93).

Script

Use scripts/forward_thread.py for the complete implementation.

python3 skills/feishu-thread-forward/scripts/forward_thread.py \
  --thread-id omt_xxxxx \
  --receive-id oc_xxxxx \
  --receive-id-type chat_id

Typical Flow

  1. Get thread_id — from the message's metadata, or by calling GET message API
  2. Call forward APIPOST /im/v1/threads/{thread_id}/forward
  3. Result — a merge_forward type message appears in the target chat as a clickable topic card

Forward vs Merge Forward vs Message Forward

MethodAPIResult
---------------------
Thread forward (this skill)POST /threads/{thread_id}/forwardTopic card (clickable, shows thread context) ✅
Merge forwardPOST /messages/merge_forward"群聊会话记录" bundle (expandable message list)
Message forwardPOST /messages/{message_id}/forwardSingle message copied to target (loses thread context)

Thread forward is what users see when they click "转发话题" in Feishu client.

Prerequisites

  • Bot must be in the source group (and can see the thread)
  • Bot must be in the target group (or target user must be in bot's availability scope)
  • Bot needs im:message or im:message:send_as_bot permission

Credentials

Read from /root/.openclaw/openclaw.jsonchannels.feishu.appId / channels.feishu.appSecret to obtain tenant_access_token.

Error Codes

CodeMeaning
---------------
230002Bot not in target group
230013Target user not in bot's availability scope
230064Invalid thread_id
230066Thread is in a secret group (no forwarding)
230070Thread's group has anti-leak mode enabled
230073Thread invisible to bot (joined after thread creation + history hidden)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 12:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,599
productivity

Feishu Interactive Card

deadblue22
⚠️ 已弃用 — 请改用 feishu-msg-reader。此技能已重命名为 feishu-msg-reader(作者 deadblue22)并被取代。
★ 1 📥 1,081
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,461