batch_get_recent_context
Query recent messages for multiple groups or friends in a single call, reducing API overhead. Returns each target's messages independently with errors for unmonitored targets.
Instructions
Query recent messages for multiple groups/friends in one call.
More efficient than calling get_recent_context multiple times: uses at most 2 OneBot API calls (one for group names, one for friend names) regardless of how many targets you query. Each target's messages are returned independently with errors for unmonitored targets.
Use this when you need to read context from 2+ conversations at once. For a single target, use get_recent_context instead (simpler).
Read-only. No side effects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | Yes | ||
| limit | No |