/// <summary> /// 发送私聊消息 /// </summary> /// <param name="robotqq">机器人QQ</param> /// <param name="qq">对象QQ</param> /// <param name="msg">消息内容</param> public void SendPrivateMessage(string robotqq, string qq, string msg) { if (XQDLL.Api_IsEnable() == false) { if (HLib.HLibExist()) { HLib.SendMsgEx(robotqq, 1, "", qq, msg, 0, false); return; } } XQDLL.Api_SendMsgEX(robotqq, 1, "", qq, msg, 0, false); }
/// <summary> /// 发送群消息 /// </summary> /// <param name="robotqq">机器人QQ</param> /// <param name="group">对象QQ群</param> /// <param name="msg">消息内容</param> public void SendGroupMessage(string robotqq, string group, string msg) { if (XQDLL.Api_IsEnable() == false) { if (HLib.HLibExist()) { HLib.SendMsgEx(robotqq, 2, group, "", msg, 0, false); return; } } XQDLL.Api_SendMsgEX(robotqq, 2, group, "", msg, 0, false); }