ItChat
ItChat copied to clipboard
发送信息总是1204错误
在提交前,请确保您已经检查了以下内容!
请使用itchat.run(debug=True)
运行,并将输出粘贴在下面:
import itchat
itchat.auto_login(hotReload=True)
# 查找自己名字,给自己发微信
users = itchat.get_friends(update=True)[0]
username = users['UserName']
itchat.send(str(quote.last_price), toUserName=username)
Out[3]: <ItchatReturnValue: {'BaseResponse': {'Ret': 1204, 'ErrMsg': '', 'RawMsg': ''}, 'MsgID': '', 'LocalID': ''}>
itchat.send(str(quote.last_price), toUserName=username)
Out[4]: <ItchatReturnValue: {'BaseResponse': {'Ret': 1204, 'ErrMsg': '', 'RawMsg': ''}, 'MsgID': '', 'LocalID': ''}>
itchat.send(str(quote.last_price), toUserName=username)
Out[5]: <ItchatReturnValue: {'BaseResponse': {'Ret': 1204, 'ErrMsg': '', 'RawMsg': ''}, 'MsgID': '', 'LocalID': ''}>
您的itchat版本为:[1.3.10]
。(可通过python -c "import itchat;print(itchat.__version__)"
获取)
其他的内容或者问题更详细的描述都可以添加在下面:
[您的内容]