2018-12-30微信自动回复机器人
2018-12-30 本文已影响0人
化石0305
from wxpy import *
#新建机器人,扫码登陆
bot =Bot()
#图灵接口,初始化机器人
tuling = Tuling(api_key="82edbb0725xxxxxxbc70c831e40c8e08") #自己上图灵官网申请api_key
#自动回复,处理文字消息
@bot.register() #装饰器
def auto_reply_all(msg):
tuling.do_reply(msg)
#开始运行
bot.join()