send_message
Send messages to QQ groups or friends with automatic reply waiting. Control message splitting via </分段> tag or punctuation-based options.
Instructions
Send a message to a monitored group or whitelisted friend. By default automatically waits for a reply after sending.
Preferred way to send multiple messages: insert </分段> in the content
at each desired split point. Each segment becomes its own message; the
tag itself is stripped. Example:
content = "吃了吗</分段>今天忙不忙"
sends two messages: "吃了吗" and "今天忙不忙". Use this whenever you want
to split a reply into multiple messages — it is more natural than
num_chunks because you choose the split points yourself.
Args:
target: Group ID or friend QQ ID.
content: Text message content. May contain </分段> markers to
specify exact split points between messages.
target_type: "group" (default) or "private".
reply_to: Optional message ID to reply to.
split_content: If True (and content has no </分段> tag), auto-split
short messages (≤100 chars) on punctuation. Default False.
num_chunks: Force exactly this many chunks via punctuation-based
merging. Overrides the </分段> tag. Set to 1 to force a single
message even when the content contains </分段>.
wait_reply: If True (default), blocks and waits for a reply after
sending. If False, returns immediately without waiting.
Split-point priority: num_chunks=1 → num_chunks≥2 → </分段> tag →
split_content → single message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| content | Yes | ||
| target_type | No | group | |
| reply_to | No | ||
| split_content | No | ||
| num_chunks | No | ||
| wait_reply | No |