batch_send
Send content to multiple users, groups, or chats in a single call. Each target is dispatched sequentially with a configurable delay, and per-target success or error is reported. Ideal for broadcasting messages across Feishu.
Instructions
[User Identity / Official API] Send the same or different content to multiple targets in one call. Each target dispatches sequentially with a small delay (anti-rate-limit) and reports per-target success/error. Identity is the cookie user (user-identity sends) unless target.via=bot. Use for broadcast / fan-out scenarios.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | Yes | Array of targets. Each entry: { type: "user"|"group"|"chat", id: <user_name | group_name | chat_id>, content: { kind: "text"|"image"|"file"|"post", ... } }. For kind="text": { text }. For "image": { image_key }. For "file": { file_key, file_name }. For "post": { title, paragraphs }. Optional per-target: via="bot" routes through send_message_as_bot (chat_id required). | |
| delay_ms | No | Delay between sends in milliseconds (default 200, increase for risky volumes). |