微信公众号语音输入支持 (#808)

This commit is contained in:
JS00000
2023-04-12 15:10:51 +08:00
committed by GitHub
parent 28bd917c9f
commit 88f4a45cae
4 changed files with 7 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class Query():
webData = web.data()
logger.debug("[wechatmp] Receive request:\n" + webData.decode("utf-8"))
wechatmp_msg = receive.parse_xml(webData)
if wechatmp_msg.msg_type == 'text':
if wechatmp_msg.msg_type == 'text' or wechatmp_msg.msg_type == 'voice':
from_user = wechatmp_msg.from_user_id
to_user = wechatmp_msg.to_user_id
message = wechatmp_msg.content.decode("utf-8")