fix: delete permanent media

This commit is contained in:
JS00000
2023-04-20 12:03:48 +08:00
parent a7772316f9
commit 40264bc9cb
4 changed files with 16 additions and 8 deletions

View File

@@ -43,7 +43,10 @@ class Query:
and message_id not in channel.request_cnt # insert the godcmd
):
# The first query begin
rtype = ReplyType.VOICE if wechatmp_msg.msg_type == "voice" else None
if (wechatmp_msg.msg_type == "voice" and conf().get("voice_reply_voice") == True):
rtype = ReplyType.VOICE
else:
rtype = None
context = channel._compose_context(
ContextType.TEXT, message, isgroup=False, desire_rtype=rtype, msg=wechatmp_msg
)