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
Close
Hashes for python-comwechatrobot-http-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfb016f4c18cdba66ade6da8c5b6c97b26ce7a4985ad843a5bed759003623931 |
|
MD5 | d30d3ae5be9ad231afa98949cfb38b03 |
|
BLAKE2b-256 | 8b31e7d0a887ff45384d16912f105d95ae02146f424cb507fa6e518ce7ac083c |
Close
Hashes for python_comwechatrobot_http-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aae9ae4797780d2809ce4e6eb899d44f16e6567ade91b0e9a41e94986689ca9 |
|
MD5 | 057fd3df3146ea395daa11df2aeb511c |
|
BLAKE2b-256 | 701e7dc6968cb307202990438fd43b19f281d68db8293c1d8fe088e0bf27e92a |