from wechatrobot import WeChatRobot
bot = WeChatRobot()
@bot.on("friend_msg")
def on_friend_msg(msg):
bot.SendText(wxid = msg['sender'], msg = msg['message'])
@bot.on("group_msg")
def on_group_msg(msg):
print(f"on_group_msg: {msg}")
@bot.on("self_msg")
def on_self_msg(msg):
print(f"on_self_msg: {msg}")
bot.run()
Metadata
Release files for python-comwechatrobot-http 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-comwechatrobot-http-1.0.1.tar.gz | 8.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_comwechatrobot_http-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / python-comwechatrobot-http-1.0.1.tar.gz
| Download URL | python-comwechatrobot-http-1.0.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfb016f4c18cdba66ade6da8c5b6c97b26ce7a4985ad843a5bed759003623931
|
|
BLAKE2b-256 checksum How to use checksums |
8b31e7d0a887ff45384d16912f105d95ae02146f424cb507fa6e518ce7ac083c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / python_comwechatrobot_http-1.0.1-py3-none-any.whl
| Download URL | python_comwechatrobot_http-1.0.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7aae9ae4797780d2809ce4e6eb899d44f16e6567ade91b0e9a41e94986689ca9
|
|
BLAKE2b-256 checksum How to use checksums |
701e7dc6968cb307202990438fd43b19f281d68db8293c1d8fe088e0bf27e92a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|