Explorar o código

Merge branch 'zhayujie:master' into feat_local

vision %!s(int64=2) %!d(string=hai) anos
pai
achega
802d8457bb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      channel/wechat/wechat_channel.py

+ 1 - 0
channel/wechat/wechat_channel.py

@@ -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:  # 新增文件回复类型