feishu-im

飞书消息与群管理。发送消息、建群、置顶、加急、撤回、群菜单/Tab/公告。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "feishu-im" with this command: npx skills add alextangson/feishu_skills/alextangson-feishu-skills-feishu-im

飞书消息与群管理

通过 IM API 发送消息、管理群聊和配置群功能。

Base URL: https://open.feishu.cn/open-apis/im/v1


消息操作

API端点说明
发送消息POST /messages?receive_id_type=open_id支持文本/卡片/图片/文件
批量发送POST /messages/batch_send最多 200 人
回复消息POST /messages/{message_id}/reply-
撤回消息DELETE /messages/{message_id}24 小时内
加急消息PATCH /messages/{message_id}/urgent_app-
置顶消息POST /pins-
添加表情POST /messages/{message_id}/reactions-

发送文本消息:

{
  "receive_id": "ou_xxx",
  "msg_type": "text",
  "content": "{\"text\":\"Hello\"}"
}

⚠️ content 必须是字符串化的 JSON。

receive_id_type: open_id / user_id / email / chat_id


交互卡片

发送卡片:

{
  "receive_id": "ou_xxx",
  "msg_type": "interactive",
  "content": "<card_json_string>"
}

卡片结构:

{
  "config": {"wide_screen_mode": true},
  "header": {
    "title": {"tag": "plain_text", "content": "标题"},
    "template": "blue"
  },
  "elements": [
    {"tag": "div", "text": {"tag": "lark_md", "content": "**加粗**"}},
    {"tag": "action", "actions": [
      {"tag": "button", "text": {"tag": "plain_text", "content": "确认"}, "type": "primary"}
    ]}
  ]
}

常用元素:

  • div: 文本块(支持 lark_md / plain_text
  • hr: 分割线
  • action: 按钮组
  • img: 图片
  • note: 备注

群聊管理

API端点说明
创建群聊POST /chats-
获取群信息GET /chats/{chat_id}-
更新群信息PUT /chats/{chat_id}修改群名/描述/头像
解散群聊DELETE /chats/{chat_id}-
搜索群聊GET /chats/search-

创建群聊:

{
  "name": "项目群",
  "description": "项目讨论",
  "user_id_list": ["ou_xxx", "ou_yyy"]
}

群成员管理

API端点说明
获取成员列表GET /chats/{chat_id}/members-
添加成员POST /chats/{chat_id}/members最多 50 人/次
移除成员DELETE /chats/{chat_id}/members-
转让群主PUT /chats/{chat_id}/owner-

群功能配置

API端点说明
群公告PATCH /chats/{chat_id}/announcement-
群置顶POST /chats/{chat_id}/top_notice/put_top_notice-
群菜单POST /chats/{chat_id}/menu_tree-
群 TabPOST /chats/{chat_id}/chat_tabs-

设置群公告:

{
  "content": "群公告内容",
  "i18n_contents": {
    "zh_cn": "中文公告",
    "en_us": "English Announcement"
  }
}

最佳实践

  1. 批量发送优先(减少 API 调用)
  2. 卡片 content 必须字符串化
  3. 群成员操作最多 50 人/次
  4. 消息撤回限 24 小时内

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

feishu-calendar

No summary provided by upstream source.

Repository SourceNeeds Review
General

feishu-bitable

No summary provided by upstream source.

Repository SourceNeeds Review
General

feishu-card

No summary provided by upstream source.

Repository SourceNeeds Review
General

feishu-doc-writer

No summary provided by upstream source.

Repository SourceNeeds Review