Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WeChat Support #917

Open
caronc opened this issue Jul 26, 2023 · 5 comments
Open

Add WeChat Support #917

caronc opened this issue Jul 26, 2023 · 5 comments

Comments

@caronc
Copy link
Owner

caronc commented Jul 26, 2023

📢 What is the name of the service?
WeChat

🔗 Provide some details about the service that can help with it's development.

  • Homepage:
  • API Reference:

One link i found (not sure if official): link

💡 Anything else?

@catfishlty
Copy link

catfishlty commented Jul 31, 2023

It's so great to hear that WeChat is on plan. 👍🏻

Here I provide is about WeChat Work Send Message Api Doc.
As I know, for regular WeChat app, it don't provide any send message api for developers.

Homepage: https://developer.work.weixin.qq.com/document
API Reference:

Here's a py implement for wechat sdk: https://github.com/wechatpy/wechatpy
For this api details: https://wechatpy.readthedocs.io/zh_CN/stable/enterprise/client.html#id12

Unfortunately, they're all in Chinese, feel free to contact me if you need help with translation.

@caronc
Copy link
Owner Author

caronc commented Aug 19, 2023

I wasn't' aware that integration with WeChat (leveraging it's API) requires some 2 way communication and exchanges. I may have to hold off supporting this plugin until i can think of a clever way to handle these kind of setups.

@catfishlty
Copy link

@caronc
I'm not sure which products are you mentioned? WeChat? or WeCom (WeChat for Work)?

If you mean 'WeChat', I highly recommend against supporting it.
As far as I know, it's very hard to implement WeChat notify api, because there's no any official apis (internal communicate protocols maybe).
It's not worth it.

But for WeCom, I think it's ok.

Here's on more Python example for sending WeCom Application Message。
https://github.com/whyour/qinglong/blob/89164a3bd2492e594b714a80c70c20c4282741c5/sample/notify.py#L390-L422

@caronc caronc mentioned this issue Dec 16, 2023
8 tasks
@caronc
Copy link
Owner Author

caronc commented Dec 16, 2023

@catfishlty sorry for being so slow to reply. WeCom Bot support now added. 🚀 . Would you want the WeCom for Work functionality too? I'm a bit confused how it works...

It appears you can use some remote central server, as well as a self hosted solution? Is this correct?

@catfishlty
Copy link

@caronc
Thanks for your great work, it's never too late for your contribution.
I'll check this wonderful feature later, and give you some feedbacks.

Would you want the WeCom for Work functionality too? I'm a bit confused how it works...

For this, it's indeed very complicated. First, need to setup some template configs on WeCom Admin Web. And then call api with message_id(template_id) and auth key(token) to send the notification.

It appears you can use some remote central server, as well as a self hosted solution? Is this correct?

Yes, I use it for my Home Lab. Because WeCom product can provider greater notification reachability for Chinese users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants