Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: gewechat 无法发送图片 #1101

Open
lemoncat7 opened this issue Feb 19, 2025 · 0 comments
Open

[Bug]: gewechat 无法发送图片 #1101

lemoncat7 opened this issue Feb 19, 2025 · 0 comments
Labels
bug? Bug或Bug修复相关

Comments

@lemoncat7
Copy link

消息平台适配器

gewechat(个人微信)

运行环境

docker

异常情况

无法发送图片

复现步骤

使用 https://github.com/sanxianxiaohuntun/XiaocxPlugin 这个插件, 对添加图像试过 url, base64, path 方式

image_url = match.group(1) # 提取图像 URL
print(f"image url {image_url}")
image_storage = self.download_and_compress_image(image_url)
if image_storage is None:
parts.append(Plain('❌图片下载失败, %s' % image_url))
else:
parts.append(Image(url=image_url)) # 添加图像消息

返回

Image

启用的插件

https://github.com/sanxianxiaohuntun/XiaocxPlugin

@lemoncat7 lemoncat7 added the bug? Bug或Bug修复相关 label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? Bug或Bug修复相关
Projects
None yet
Development

No branches or pull requests

1 participant