WeRoBot is a Python framework for building WeChat official account bots. It routes incoming messages to handlers and can reply or call WeChat platform APIs.
Overview
WeRoBot helps developers create services that interact with WeChat official accounts. You configure a token, register handlers for message and event types, and run a small server that WeChat calls when users interact with the account.
Message handling covers text and rich media types, with filters for keywords, menu clicks, and custom rules. Session support can track per-user state across messages. Reply helpers produce text, images, voice, video, articles, music, and customer-service handoff responses documented in the API reference.
A client component wraps WeChat APIs for menus, user management, materials, tags, and template messages. Documentation explains deployment on a standalone server or on SAE, plus integration with Django, Flask, Bottle, and Tornado so the robot can live inside existing Python web apps.
Installation is typically via pip. The project is a framework you embed in your own hosting environment rather than a standalone end-user application.
Key features
- Message and event handlers
- Custom menu click routing
- Session state per user
- Rich message replies
- WeChat API client
- Message crypto options
- Django and Flask integration
- Standalone server deployment
Use cases
- WeChat auto-reply bots
- Official account menus
- Template message backends
- Python WeChat integrations