ItChat
A complete and graceful API for Wechat. 微信个人号接口、微信机器人及命令行微信,三十行即可自定义个人号机器人。
Python library to automate WeChat messaging, file transfers, and chatbots using your personal account via code instead of manual interaction.
ItChat is a Python tool that lets developers control a WeChat personal account programmatically — meaning you can write code that automatically sends and receives WeChat messages, files, and images on your behalf. It's essentially a way to build a WeChat chatbot or automation tool using your own personal WeChat account rather than an official business account.
With just a few lines of Python code, you can set up a bot that reads incoming messages and replies automatically, forwards files, responds to mentions in group chats, or performs any custom logic you define. The login process works by scanning a QR code once, and the session can be saved so you don't need to scan again each time.
The README is primarily in Chinese, which reflects its audience — it was built for Chinese developers working with WeChat, which is the dominant messaging platform in China with over a billion users.
For a founder or vibe coder, this is most relevant if you're building something for the Chinese market and need WeChat automation — like a customer support bot, a notification system, or an automated file-sharing tool delivered via WeChat. It's a Python library, so you'd need a developer (or to use an AI coding tool) to actually implement it. Note that this uses the unofficial WeChat web API, which Tencent (WeChat's parent company) has restricted over time, so the library may have reliability limitations depending on account type and WeChat's current policies.
Where it fits
- Build a customer support chatbot that automatically responds to WeChat messages on your behalf.
- Create a notification system that sends alerts and updates to users via WeChat.
- Automate file sharing and document distribution through WeChat group chats.
- Set up a bot that monitors mentions in group chats and replies with custom logic.