Giter Site home page Giter Site logo

Comments (10)

bestony avatar bestony commented on August 14, 2024

目前没有获取同意好友的事件。

@youfou

from lcbot.

worldligang avatar worldligang commented on August 14, 2024

这个可以获取不,还是说接口限制?

from lcbot.

bestony avatar bestony commented on August 14, 2024

接口没有对应信息反馈

from lcbot.

youfou avatar youfou commented on August 14, 2024

试试在 shell 中运行以下命令

wxpy bot -l d

将以输出debug日志的方式启动wxpy
登陆测试账号后,用另一个号去加好友,手动同意后,应该会有 'new message' 的日志出现

from lcbot.

bestony avatar bestony commented on August 14, 2024

👌

from lcbot.

worldligang avatar worldligang commented on August 14, 2024

如果有 'new message' 那就真是太好啦,就可以解决手动同意之后,去做的事情啦~

from lcbot.

robot527 avatar robot527 commented on August 14, 2024

@youfou
我用两个账号测试了两个方向的删除再添加好友,都没有 'new message' 的日志出现。
搜索 wxpy 源码里也没有手动相关的代码或注释。
_process_message 这个方法没有针对手动同意好友事件的处理?

from lcbot.

youfou avatar youfou commented on August 14, 2024

@robot527 有可能是我的锅,先前版本的wxpy中,-l d (设置日志等级为DEBUG) 的参数不起作用,后来的版本修复了。我测试下好了。

from lcbot.

youfou avatar youfou commented on August 14, 2024

经测试发现,手动同意后会有一条 NOTE 消息

DEBUG:wxpy.api.bot:<Bot: wxpy_test>: new message (func: None):
游否 : 你已添加了游否,现在可以开始聊天了。 (Note)

所以可以考虑把自动/手动同意后要做的操作都搬到这条消息的注册上。

from lcbot.

robot527 avatar robot527 commented on August 14, 2024

@youfou 0.3.9.5 这个版本可用了是吧。有空试试。

from lcbot.

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.