Feishu Message

Feishu Message Skill

kbarbel640-del Updated 1 repo stars

File contents

Feishu Message Skill

General utilities for Feishu Message operations that go beyond simple sending.

Tools

1. Create Group Chat (create_chat.js)

Create a new Feishu group chat with specified users.

node skills/feishu-message/create_chat.js --name "Project Alpha" --users "ou_..." "ou_..." --desc "Internal Discussion"

2. Get/Read Message (Recursive)

Fetch message content, including handling merge-forward messages recursively.

node skills/feishu-message/get.js --message-id "om_..." --recursive

3. Send Audio (Voice Bubble)

Send an audio file as a native Feishu voice bubble.

  • Automatically calculates duration (requires music-metadata).
  • Uploads as opus (compatible with Feishu voice).
node skills/feishu-message/send-audio.js --target "ou_..." --file "path/to/audio.mp3"

Options:

  • --target <id>: User OpenID (ou_) or ChatID (oc_).
  • --file <path>: Path to audio file.
  • --duration <ms>: (Optional) Manually specify duration in milliseconds.

Dependencies

  • axios
  • form-data
  • music-metadata
  • commander

kbarbel640-del/skills/tree/main/skills/autogame-17/feishu-message commit 2fbe0c3326

Frequently asked questions

npx skillmds@latest add kbarbel640-del/feishu-message