wxpy
wxpy copied to clipboard
使用图灵机器人聊天时不能自动回复
from wxpy import *
bot = Bot(cache_path=True, console_qr=True, qr_callback=True)
tuling = Tuling(api_key='xxxxxxxxxxxxxxxxxxxxxxxxxx')
found = bot.friends().search(u'xxxx')[0] #好友微信名称 found.send('test')
@bot.register(found) def reply_my_frined(msg): print(msg) tuling.do_reply(msg) embed()