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()
forked from 0honus0/python-comwechatrobot-http
Zkuns/python-comwechatrobot-http
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
ComWeChatRobot http接口 python封装
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%