Beispiel #1
0
        public void SendMessage(string msg)
        {
            string oq_msg    = string.Format("{0}\\r\\n——此消息发自OpenQuant客户端", msg);
            string strResult = cw.SendMsgToGroup(Gid, Code, oq_msg, "", "宋体", "10", "000000", "0,0,0");

            if ((strResult.IndexOf("ok") >= 0))
            {
                Console.WriteLine("消息【" + msg + "】发送成功!");
            }
            else
            {
                Console.WriteLine(strResult);
            }
        }
Beispiel #2
0
 public void sendMsgToGroup(string gid, string code, string content)
 {
     //SendMsgToFriend(string uin, string Content, string FullFilePath="",string FontName = "宋体", string FontSize = "10", string FontColor = "000000", string BIU_SetValue = "0,0,0")
     getSession();
     cw.SendMsgToGroup(gid, code, content);
 }