GithubHelp home page GithubHelp logo

微信群有唯一识别的字段么 about vbot HOT 8 OPEN

hanson avatar hanson commented on September 26, 2024
微信群有唯一识别的字段么

from vbot.

Comments (8)

qbhy avatar qbhy commented on September 26, 2024

建议用备注来唯一标识。

from vbot.

charlesyq avatar charlesyq commented on September 26, 2024

群好像没有备注功能吧,还有个问题 有接口获取所有群么,貌似有些不活跃的群 webwxbatchgetcontact?type=ex 这个接口是不返回的 @96qbhy @Hanson

from vbot.

Hanson avatar Hanson commented on September 26, 2024

@charlesyq 是不能一次获取的,除非你添加到通讯录

from vbot.

charlesyq avatar charlesyq commented on September 26, 2024

@Hanson 有个问题请教下,我看微信请求webwxgetcontact 这个获取联系人方法的时候 只返回了20个群 但是不知道为什么后来他能获取到50个群了,后边的群是怎么获取到的呀

from vbot.

Hanson avatar Hanson commented on September 26, 2024

@charlesyq 随机事件。除非全部群保存通信录,否则不靠谱

from vbot.

charlesyq avatar charlesyq commented on September 26, 2024

@Hanson 哈,但是我发现登陆网页版的时候每次第二次请求webwxgetcontact?type=ex的时候他请求的时候都是已经获取到50个群了,貌似我微信就50个群

from vbot.

charlesyq avatar charlesyq commented on September 26, 2024

@Hanson 还有个问题 我在 messageHandler 的时候做了处理 有群消息过来的时候更新群

$username = $message['from']['UserName'];
        if($groups->isGroup($username)){
            vbot('console')->log('群数量:'.count($groups->all()));
            $groups->update($username);
            vbot('console')->log('群数量:'.count($groups->all()));
        }

发现控制台输出是更新了群 ,有新的群进来的时候群数量会增加 但是api接口请求的数据却没有同步过来,这是为什么呀

from vbot.

linxbin avatar linxbin commented on September 26, 2024

@charlesyq 请问这个获取全部群的功能,有做出来吗,能否提供下思路

from vbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.