Update chat_channel.py to support ReplyType.FILE

This commit is contained in:
befantasy
2023-09-15 16:21:27 +08:00
committed by GitHub
parent 04d5c1ab01
commit 905532b681

View File

@@ -241,7 +241,7 @@ class ChatChannel(Channel):
reply.content = reply_text
elif reply.type == ReplyType.ERROR or reply.type == ReplyType.INFO:
reply.content = "[" + str(reply.type) + "]\n" + reply.content
elif reply.type == ReplyType.IMAGE_URL or reply.type == ReplyType.VOICE or reply.type == ReplyType.IMAGE:
elif reply.type == ReplyType.IMAGE_URL or reply.type == ReplyType.VOICE or reply.type == ReplyType.IMAGE or reply.type == ReplyType.FILE:
pass
else:
logger.error("[WX] unknown reply type: {}".format(reply.type))