wechaty / python-wechaty-puppet-itchat

Python Wechaty Puppet Powered by Itchat
Apache License 2.0
39 stars 11 forks source link

The scan event only occurs after the user scans #5

Closed lyleshaw closed 3 years ago

lyleshaw commented 3 years ago

Before: image After: image

wj-Mcat commented 3 years ago

Great, it's a huge step for python-wechaty-puppet-itchat. Please go ahead.

lyleshaw commented 3 years ago

It seems that all the emit event will occurs after the itchat fuction has done. eg:

  1. scan event occurs after itchat::login::login function.
  2. massage event occurs after itchat::login::start_receiving::exitCallback function has been called. image

Those problems will make the on_scan and on_massage function (which in Wechaty) invalidated.