     sendToGroup: (msg, callback) ->
         if not msg.to
             return
-        guin = msg.to.guin
+        guin = msg.to.uin
         if not guin
-            guin = groupToUin msg.to.gid
+            guin = getGroupUin msg.to
             if not guin
                 return
         rValue =

        params =
            r: JSON.stringify(rValue)

        cookie2 = Cookie.filterCookieByDomain(@cookie, 's.web2.qq.com')
        cookie3 = Cookie.joinCookie(cookie2)
        data = QueryString.stringify(params)
        client = HttpClient.create('http://s.web2.qq.com')
            .path('api/get_user_friends2')
            .header('Cookie', cookie3)
            .header('Referer', 'http://s.web2.qq.com/proxy.html?v=20110412001&callback=1&id=3')
            .header('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8')
            .post(data)((err, resp, body) =>

        uin = msg.to.uin
        if not uin
            console.log 'uin miss'
            uin = getUserUin msg.to
            if not uin
                console.log 'no uin'
                return
