from wxpy import *bot = Bot()my_friend = bot.friends().search('Peterguo')[0]messages = bot.messages.search(keywords='test', sender=bot.self)for message in messages: print(message)my_friend.send('Hello, WeChat!')@bot.register()def print_others(msg): print(msg) msg.reply("Hello" + str(msg))embed()
http://wxpy.readthedocs.io/zh/latest/chats.html
https://www.cnblogs.com/jaycekon/p/WxpyRedis.html