/// <summary> /// 发送群消息。 /// </summary> /// <param name="groupNumber">群号码。</param> /// <param name="message">群消息内容。</param> public static void SendGroupMessage(long groupNumber, string message) { CQLogger.GetInstance().AddLog(String.Format("[↑][群聊] 群:{0} {1}", groupNumber, message)); if (ProxyType == CQProxyType.UDP) { string content = String.Format("SendGroupMessage|{0}|{1}", groupNumber, message.Replace("|", "$内容分割$")); CQUDPProxy.GetInstance().SendMessage(content); } else { CQAPI.SendGroupMessage(CQAPI.GetAuthCode(), groupNumber, message); } }