Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions skills/lark-im/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ When using bot identity (`--as bot`) to fetch messages (e.g. `+chat-messages-lis

Card messages (`interactive` type) are not yet supported for compact conversion in event subscriptions. The raw event data will be returned instead, with a hint printed to stderr.

### Sharing Chats / Generating Chat URLs

Group share links must come from `chats.link`. **Never hand-construct `applink.feishu.cn/...?chatId=oc_xxx` style URLs from a `chat_id`** — they don't navigate. The API returns a tenant-specific join link (host varies); pass it through as-is.

```bash
lark-cli im chats link --params '{"chat_id":"oc_xxx"}'
# default 7-day validity; pass --data '{"validity_period":"year"|"permanently"}' to extend
```

### Flag Types

Flags support two layers:
Expand Down
9 changes: 9 additions & 0 deletions skills/lark-im/references/lark-im-chat-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ CHAT_ID=$(lark-cli im +chat-search --query "daily report" --format json | jq -r
lark-cli im +messages-send --chat-id "$CHAT_ID" --text "Today's progress update"
```

### Scenario 4: Search a chat and get its share link

```bash
CHAT_ID=$(lark-cli im +chat-search --query "alert group" --format json | jq -r '.data.chats[0].chat_id')
lark-cli im chats link --params "{\"chat_id\":\"$CHAT_ID\"}"
```

Never hand-build `applink.feishu.cn/...?chatId=oc_xxx` URLs — see [SKILL.md](../SKILL.md#sharing-chats--generating-chat-urls).

## Common Errors and Troubleshooting

| Symptom | Root Cause | Solution |
Expand Down
Loading