浏览代码

Merge branch 'feat_local' of git@github.com:6vision/chatgpt-on-wechat.git into feat_local

master
6vision 7 个月前
父节点
当前提交
01660597e3
共有 1 个文件被更改,包括 1 次插入0 次删除
  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: # 新增文件回复类型


正在加载...
取消
保存