Git Product home page Git Product logo

Comments (12)

littlecodersh avatar littlecodersh commented on May 28, 2024

@MrHelix0625 你可以看一下我的演示程序,是可以传userName的
userName每次都会变化,所以如果要确定唯一群聊,可以参考这里

from itchat.

MrHelix0625 avatar MrHelix0625 commented on May 28, 2024

看着有点复杂,有可以直接调用的入口么?或者用已知的API怎么组合调用,然后传入send的toUserName参数里?

from itchat.

littlecodersh avatar littlecodersh commented on May 28, 2024

@MrHelix0625 没有,具体实现你可以根据文档研究一下

from itchat.

MrHelix0625 avatar MrHelix0625 commented on May 28, 2024

我尝试用get_contract()函数导出了所有的联系人,查询了里面没有群聊信息的字典。而且我看后面所有的取值函数(例如根据remarkname,alias等等)都是依据getcontract这个函数,前面说的几个方法,PYQuanPin和Owner都得建立在list里有这个字典为主,麻烦给个解决思路,谢谢!btw,用的是python3.5

from itchat.

littlecodersh avatar littlecodersh commented on May 28, 2024

@MrHelix0625 你尝试一下get_chatrooms方法,这个方法可以获取到已收藏的群聊。
没有收藏的群聊会在第一次收到该群聊的消息的时候存储在itchat.__client.storageClass.groupDict里。

from itchat.

MrHelix0625 avatar MrHelix0625 commented on May 28, 2024

Please press confirm
Login successfully as Mr.Helix
[]
搞不懂了。。。空的list和dict,蒙圈了

from itchat.

littlecodersh avatar littlecodersh commented on May 28, 2024

@MrHelix0625 你有收藏过群聊么?

from itchat.

MrHelix0625 avatar MrHelix0625 commented on May 28, 2024

@littlecodersh 搞懂了,原来要在手机端吧这个群保存在通讯录里。真是忙活一大圈啊,谢谢了,littlecoder!

from itchat.

littlecodersh avatar littlecodersh commented on May 28, 2024

@MrHelix0625 所以我才在六楼回复中特地加了“已收藏的群聊”
这就和一台新手机登陆你的微信号一样,新登录的时候只有收藏的群聊和新的有消息的群聊才会显示出来

from itchat.

MrHelix0625 avatar MrHelix0625 commented on May 28, 2024

@littlecodersh 嗯嗯,是我太粗心,主要以前没这么用过微信

from itchat.

MrHelix0625 avatar MrHelix0625 commented on May 28, 2024

已经解决了,关了吧,谢谢!

from itchat.

littlecodersh avatar littlecodersh commented on May 28, 2024

@MrHelix0625 好的,有别的问题也欢迎开issue我们再做讨论

from itchat.

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.