send_private_message
Send a private QQ message to a user by openid, either replying to an incoming message with msg_id or proactively pushing reminders and task updates.
Instructions
向指定 QQ 用户发送单聊消息。既可用于被动回复(传入刚才收到的 msg_id),也可用于主动推送(不传 msg_id,例如任务完成或定时提醒)。user_openid 与 msg_id 都来自 fetch_messages 或 bot_info 的返回值。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg_id | No | 可选。要回复的那条入站消息的 msg_id。传入即为被动回复,可绕过主动消息频率限制;不传即为主动推送。 | |
| content | Yes | 消息文本内容。 | |
| user_openid | Yes | 接收者的用户 openid。同一用户在不同机器人下的 openid 不同,必须用 bot_info 的 contacts.known 或 fetch_messages 返回值;不要自己编造。 |