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