// the find
easychen/wecomchan
微信推送服务Server酱的开源替代。通过企业微信向微信推送消息的配置文档、直推函数和可自行搭建的在线服务代码。
A collection of scripts and serverless function templates for pushing text/markdown/image messages to WeChat by relaying through a WeCom (Enterprise WeChat) custom app's message API. It's aimed at Chinese developers who want Server酱-style push notifications without depending on a hosted third-party service.
Ships working client code in PHP, Python, TypeScript, Go, and C#, so you can drop the send function straight into whatever stack you're already running. Offers both a self-hosted path (Docker-ready Go/PHP server) and four separate serverless deployment targets (Tencent SCF, Alibaba FC, Baidu CFC, Huawei FunctionGraph), so you're not locked into one cloud. The core mechanic is dead simple — get a token, POST a JSON payload — with no unnecessary abstraction layers on top.
The access_token fetch isn't cached in any of the sample functions (the README admits this outright), so every call round-trips to WeCom's gettoken endpoint — fine for personal alerts, a real liability if you push at any volume. The repo is really five barely-related integrations glued together by one README rather than one coherent project, so picking the right subdirectory for your cloud provider takes more digging than it should. Setup has real friction baked in: you need to register a WeCom enterprise account and, since mid-2022, explicitly allowlist a trusted IP or the app will reject requests — a dealbreaker on providers without a static egress IP. No tests anywhere in the tree, and the last push was mid-2024, so don't expect fast turnaround if WeCom changes its API.