finds.dev

songtianyi/wechat-go

go version wechat web api and message framework for building wechat robot

View on GitHub

★ 1,866GoMITupdated Jul 2022

// the take

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.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,866
Forks
343
Language
Go
License
MIT
Last commit
13 Jul 2022

// nearby

If wechat-go isn't quite it.

All repos →