http api for comwechatrobot
Project description
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()
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-comwechatrobot-http-1.0.1.tar.gz.
File metadata
- Download URL: python-comwechatrobot-http-1.0.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfb016f4c18cdba66ade6da8c5b6c97b26ce7a4985ad843a5bed759003623931
|
|
| MD5 |
d30d3ae5be9ad231afa98949cfb38b03
|
|
| BLAKE2b-256 |
8b31e7d0a887ff45384d16912f105d95ae02146f424cb507fa6e518ce7ac083c
|
File details
Details for the file python_comwechatrobot_http-1.0.1-py3-none-any.whl.
File metadata
- Download URL: python_comwechatrobot_http-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7aae9ae4797780d2809ce4e6eb899d44f16e6567ade91b0e9a41e94986689ca9
|
|
| MD5 |
057fd3df3146ea395daa11df2aeb511c
|
|
| BLAKE2b-256 |
701e7dc6968cb307202990438fd43b19f281d68db8293c1d8fe088e0bf27e92a
|