tuna / fishroom

Message forwarding for multiple IM protocols
GNU General Public License v3.0
289 stars 58 forks source link

WeChat support #67

Closed mytbk closed 7 years ago

mytbk commented 7 years ago

Use itchat to support web WeChat. Temporarily I use photo_store to store all attachments, and some kinds of messages are not supported. Only group chat is supported and tested.

Lesita commented 7 years ago

'itchat' or original API, maybe the API performances well. And how is it to be done? Looking for a project supports using "WeChat" too.

来自Cyanogenmod Mail

"Iru Cai (vimacs)" notifications@github.com编写:

Use itchat to support web WeChat. Temporarily I use photo_store to store all attachments, and some kinds of messages are not supported. Only group chat is supported and tested.

You can view, comment on, or merge this pull request online at:

  https://github.com/tuna/fishroom/pull/67

Commit Summary

Add support for WeChat example config for WeChat requirements.txt: add itchat to support WeChat

File Changes

M fishroom/config.py.example (9) M fishroom/models.py (1) A fishroom/wechat.py (305) M requirements.txt (1)

Patch Links:

https://github.com/tuna/fishroom/pull/67.patch https://github.com/tuna/fishroom/pull/67.diff

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tuna/fishroom","title":"tuna/fishroom","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/tuna/fishroom"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"WeChat support (#67)"}],"action":{"name":"View Pull Request","url":"https://github.com/tuna/fishroom/pull/67"}}}

mytbk commented 7 years ago

@Lesita itchat, the python web WeChat API is https://github.com/littlecodersh/itchat You can read the documentation of it and related projects. You can also read my code in fishroom.

It's hard to write another native WeChat client, so you need to scan the QRcode when login, but then you can shut your mobile WeChat down.