/// <summary> /// Type=2 群消息。 /// </summary> /// <param name="subType">子类型,目前固定为1。</param> /// <param name="sendTime">发送时间(时间戳)。</param> /// <param name="fromGroup">来源群号。</param> /// <param name="fromQQ">来源QQ。</param> /// <param name="fromAnonymous">来源匿名者。</param> /// <param name="msg">消息内容。</param> /// <param name="font">字体。</param> public override void GroupMessage(int subType, int sendTime, long fromGroup, long fromQQ, string fromAnonymous, string msg, int font) { // 处理群消息。 var groupMember = CQ.GetGroupMemberInfo(fromGroup, fromQQ); CQ.SendGroupMessage(fromGroup, String.Format("[{4}]{0} 你的群名片:{1}, 入群时间:{2}, 最后发言:{3}。", CQ.CQ码_At(fromQQ), groupMember.GroupCard, groupMember.JoinTime, groupMember.LastSpeakingTime, CQ.ProxyType)); CQ.SendGroupMessage(fromGroup, String.Format("[{0}]{1}你发的群消息是:{2}", CQ.ProxyType, CQ.CQCode_At(fromQQ), msg)); }