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()
-
Notifications
You must be signed in to change notification settings - Fork 7
0honus0/python-comwechatrobot-http
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
ComWeChatRobot http接口 python封装
Resources
Stars
Watchers
Forks
Packages 0
No packages published