send_msg
Send private or group QQ messages through OneBot 11 by specifying message_type, target_id, and message content, with optional CQ code escaping.
Instructions
通用消息发送接口 (OneBot 11: send_msg),可根据 message_type 发送私聊或群聊消息。 :param message_type: 消息类型,'private' (私聊) 或 'group' (群聊) :param target_id: 当 message_type='private' 时为对方 QQ 号;为 'group' 时为目标群号 :param message: 要发送的文本、CQ 码或 OneBot 消息段数组 :param auto_escape: 是否不解析 CQ 码,默认 False
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | 要发送的文本、CQ 码或 OneBot 消息段数组 | |
| target_id | Yes | 当 message_type='private' 时为对方 QQ 号;为 'group' 时为目标群号 | |
| auto_escape | No | 是否不解析 CQ 码,默认 False | |
| message_type | Yes | 消息类型,'private' (私聊) 或 'group' (群聊) |