// the find
songtianyi/wechat-go
go version wechat web api and message framework for building wechat robot
A Go library that wraps the WeChat Web API to build chatbots — login via QR code, receive and send messages, manage contacts. It uses a plugin architecture where each message handler is a separate package you register against a session. Aimed at developers who want to automate a personal WeChat account.
The plugin system is well-designed: each plugin is a single-purpose package with a Register function, handlers can be enabled/disabled at runtime via chat commands without redeploying. Multi-session support (multiple WeChat accounts in one process) is built in from the start, not bolted on. The in-chat switcher plugin for toggling other plugins is a clever UX touch for bot operators. The session/handler separation keeps protocol logic out of plugin code.
The WeChat Web API has been progressively locked down since 2017 — the README itself warns that accounts created after mid-2017 cannot use the web API at all, which is a hard blocker for most new users. Last commit was 2022 and the underlying API it targets is effectively deprecated by Tencent, so this is increasingly a dead end. The README is almost entirely in Chinese with no English documentation for the API itself, just a translated plugin example. No tests beyond a single utils_test.go file.