Exemple #1
0
        public static void SendPrivateXmlMsg(long thisQQ, long sendQQ, string xmlMsg)
        {
            API.ThisQQ = thisQQ;
            API.SendQQ = sendQQ;
            var zipByte = API.CompressData(Encoding.UTF8.GetBytes(xmlMsg));

            FriendMsg.SendFriendMsg(thisQQ, sendQQ, zipByte, API.MsgType.XmlMsg);
        }
Exemple #2
0
        public static void SendGroupXmlMsg(long thisQQ, long groupId, string xmlMsg, long sendQQ = 0)
        {
            API.ThisQQ  = thisQQ;
            API.SendQQ  = sendQQ;
            API.GroupId = groupId;
            var zipByte = API.CompressData(Encoding.UTF8.GetBytes(xmlMsg));

            GroupMsg.SendGroupMsg(thisQQ, groupId, zipByte, API.MsgType.XmlMsg, sendQQ);
        }