mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
微信公众号语音输入支持 (#808)
This commit is contained in:
@@ -21,7 +21,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
|
||||
message = wechatmp_msg.content.decode("utf-8")
|
||||
message_id = wechatmp_msg.msg_id
|
||||
|
||||
Reference in New Issue
Block a user