             for key ,value of options
                 return item[key] == value
         groups.pop()
-        
+    
+    # @options {key:value} 
+    # @callback (true/false , error)
+    update_group_member: (options, callback)->
+        group = @get_group(options)
+        api.get_group_member group.code , @auth , (ret,e)=>
+            if ret.retcode == 0
+                @save_group_member(group,ret.result)
+            callback(ret.retcode == 0 , e) if callback
+         
     handle_poll_responce: (resp)->
         code = resp.retcode
         return if code != 0

            
        if msg.type == 'group'
            msg.from_gid = msg.from_uin
            msg.from_uin = value.send_uin # 这才是用户
            msg.from_group = @get_group({gid:msg.from_gid} )
            msg.from_user  = @get_user( msg.from_uin )
        else if msg.type == 'buddy'
            msg.from_user = @get_user( msg.from_uin )
        msg

        # TODO:加速查询
        users = @buddy_info.info.filter (item)-> item.uin == uin            
        users.pop()
    
    # 获取群用户信息
    get_user_ingroup: (uin, gid)->
        info = @groupmember_info[gid]
        users = info.minfo.filter (item)-> item.uin == uin
        users.pop()
        
        
    # 获取群信息，只支持群 ，支持多关键词搜索
    # @options {key:value} 
