Browse Source

feat ReplyType.IMAGE 回复图片为空的BUG

master
Clivia GitHub 7 months ago
parent
commit
8309f7cdbe
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      channel/wechat/wechat_channel.py

+ 1
- 0
channel/wechat/wechat_channel.py View File

@@ -233,6 +233,7 @@ class WechatChannel(ChatChannel):
logger.info("[WX] sendImage url={}, receiver={}".format(img_url, receiver))
elif reply.type == ReplyType.IMAGE: # 从文件读取图片
image_storage = reply.content
image_storage.seek(0)
itchat.send_image(image_storage, toUserName=receiver)
logger.info("[WX] sendImage, receiver={}".format(receiver))
elif reply.type == ReplyType.FILE: # 新增文件回复类型


Loading…
Cancel
Save