-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
功能与意见反馈,报bug可以另开issue #1
Comments
python3 main.py 报错 File "main.py", line 8, in <module>
r = itchatmp.send('greeting from itchatmp!', userId)
File "/usr/local/lib/python3.6/site-packages/itchatmp/controllers/wrapped.py", line 9, in send
msg, toUserName, mediaId)
File "/usr/local/lib/python3.6/site-packages/itchatmp/controllers/common.py", line 19, in determine_wrapper
return mpFn(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/itchatmp/controllers/mpapi/mp/wrapped.py", line 68, in send
r = cssend(msgType, mediaId, additionalDict=msg, toUserId=toUserId)
File "/usr/local/lib/python3.6/site-packages/itchatmp/controllers/mpapi/base/common.py", line 152, in __access_token
r = fn(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/itchatmp/controllers/mpapi/mp/customerservice.py", line 99, in send
msgDict = __form_send_dict(msgType, mediaId, additionalDict)
File "/usr/local/lib/python3.6/site-packages/itchatmp/controllers/mpapi/mp/customerservice.py", line 137, in __form_send_dict
MUSIC: {'music': additionalDict['music'], 'msgtype': 'music'},
KeyError: 'music |
@lwj714003758 升级新版本试试。 |
没有认证过的个人公众订阅号 中如何直接对用户进行回复啊. 我看了微信公众号的API貌似是不允许的, 但是在网页版中可以直接这么做. 我想着有没有可能itchatmp也有这个功能呢 |
@littlecodersh pip上的还是0.0.16版, 跑text_reply示例在template.format(**replyDict)会报错, 因为'Content' key没有正确被设置 |
@littlecodersh #Wechat Auto Reply logic
@itchatmp.msg_register(itchatmp.content.TEXT)
def text_reply(msg):
if(msg['Content'].isdigit() and len(msg['Content']) == 5):
return addjob(msg['FromUserName'],msg['Content'])
WrongCRN = [u'好像没有这个课号呢!课号一般是5位数。',u'难受!没这个课号!再试试其他的吧!',u'逗我呢?',u'你**在给我free style吗?']
return random.choice(WrongCRN)
@itchatmp.access_token
def producer(accessToken=None):
while(1):
if hasUpdated():
itchatmp.send(str(datetime.datetime.now()),'oO3tH0e3rt_j85k3ASkztTBM8Mec')
print('1')
else:
sleep(1)
continue
#MultiThread
###### main auto reply ######
replyThread = threading.Thread(target=itchatmp.run)
# prevent Main Thread to continue
replyThread.setDaemon(True)
# start as Daemon
replyThread.start()
###### producer #####
producer = threading.Thread(target=producer)
producer.setDaemon(True)
producer.start()
replyThread.join()
producer.join() 每次都是Update Token以后 第二个thread 会报错
|
使用NATAPP二级域名配套环境的时候,出现这样的错误信息,请问如何解决? E:\python\py3\p\itchat\mpxl>python main.py During handling of the above exception, another exception occurred: Traceback (most recent call last): |
请问itchatmp能回复的内容是不是只包含IMAGE, VOICE, VIDEO, TEXT, NEWS, CARD,能否简单介绍一下IMAGE图片格式以及NEWS该如何发送,代码看的不是很懂。 |
C:\Users\山海>pip install itchatmp During handling of the above exception, another exception occurred: Traceback (most recent call last): 那个请问,这个是怎么回事。 |
ubuntu 16.04 windows10 |
运行以下代码后报此错误: `import itchatmp itchatmp.update_config(itchatmp.WechatConfig( @itchatmp.msg_register(itchatmp.content.TEXT) itchatmp.run() ` 80端口确实被其他应用站用了,我想请教的是itchatmp运行时如何修改端口号,不使用80。 |
请问我要获取某个微信公众号向我的微信发的消息,要怎么获取呢。 |
请问作者还在更新吗?py3.0好像总有报错,另外请问怎样才能获得菜单click的动作哪? |
现在不更新了吗,大多数微信不支持网页版微信 登入怎么办 |
|
当消息处理耗时较长时(>5s),会报错,当处理时长较短时,均可以正常返回 |
都可以在这里交流,我会及时回复的~
也欢迎加入QQ群讨论:438747166
The text was updated successfully, but these errors were encountered: