from itchat.content import * import re #登陆 itchat.auto_login(enableCmdQR=True,hotReload=True) itchat.run #监听 @itchat.msg_register(INCOME_MSG) def text_reply(msg): print(msg) match= re.search('在',msg['Text'])#检测发送的内容是否包含“在” if match:#判断match内容为真,执行下面代码,自动回复“在的” itchat.send("在的",toUserName=msg['FromUserName'])
python--微信自动回复
最新推荐文章于 2024-08-03 09:13:23 发布