ehForwarderBot / efb-wechat-slave

A channel for EH Forwarder Bot.
GNU Affero General Public License v3.0
459 stars 62 forks source link

feature(itchat): add UOS weixin desktop patch #136

Closed shejialuo closed 1 year ago

shejialuo commented 1 year ago

It turns out that wechat-uos provided by Tencent still uses the web interface, and someone finds the way to utilize the wechat-uos to login into the web for the ones who cannot login by web. This commit uses the information provided by the others. It does the three basic things:

  1. Change itchat config.py to add the corresponding version and UOS_PATCH_EXTSPAM.
  2. Change itchat components/login.py to add the latest weixin check, skey field and pass_ticket field.
  3. In order to get the message from weixin, eveytime the device ID should be changed, so this commit uses random string to generate the device ID.

However, this patch doesn't work for WeChat users.

shejialuo commented 1 year ago

I have already changed the file. However, the puzzle thing is that I could not figure out the commit hash ID with only one commit message, So i use [shejialuo] == [efb-wechat-slave#136] to the CHANGELOG of itchat.

blueset commented 1 year ago

The commit hash is taken from the original PR I took this change from. In your case you can use the branch name instead. I will make the change for you in the PR.

Thank you for the awesome PR!

whudwl commented 1 year ago

This is awesome! thank you so much!

brryaa commented 1 year ago

You save the efb weixin users who cannot login by web. It's a great contribution. Thank you !

jiz4oh commented 1 year ago

Thank you!

hookjk100 commented 1 year ago

If you have any questions, you can communicate with “ efb-wechat 難民營” here: https://t.me/+UJz8XfH65xg1ZmU5