Wechaty is a Bot SDK for Wechat Personal Account
Project description
python-wechaty
Python Wechaty
WORK IN PROGRESS
Work in progress...
Please come back after 4 weeks...
Connecting Chatbots
Wechaty is a Bot SDK for Wechat Personal Account which can help you create a bot in 6 lines of Python.
Voice of the Developers
"Wechaty is a great solution, I believe there would be much more users recognize it." link
-- @Gcaufy, Tencent Engineer, Author of WePY
"太好用,好用的想哭"
-- @xinbenlv, Google Engineer, Founder of HaoShiYou.org
"最好的微信开发库" link
-- @Jarvis, Baidu Engineer
"Wechaty让运营人员更多的时间思考如何进行活动策划、留存用户,商业变现" link
-- @lijiarui, CEO of BotOrange.
"If you know js ... try Chatie/wechaty, it's easy to use."
-- @Urinx Uri Lee, Author of WeixinBot(Python)
See more at Wiki:Voice Of Developer
The World's Shortest Python ChatBot: 6 lines of Code
from wechaty import Wechaty
Wechaty.instance() // Global Instance
.on('scan', lambda qrcode, status : print('Scan QR Code to login: {}\nhttps://api.qrserver.com/v1/create-qr-code/?data={}'.format(status, encodeURIComponent(qrcode))))
.on('login', lambda user: print('User {} logined'.format(user)))
.on('message', lambda message: print('Message: {}'.format(message)))
.start()
Requirements
- Python 3.7 or above
Install
pip3 install wechaty
Usage
WIP...
See Also
Static & Instance of Class
Typings
Author
Copyright & License
- Code & Docs © 2020-now Huan LI <zixia@zixia.net>
- Code released under the Apache-2.0 License
- Docs released under Creative Commons
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.