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

fix:修复了无法发送图片的问题 #101

Open
wants to merge 2 commits into
base: dev-v0.4.x
Choose a base branch
from

Conversation

Mike-Solar
Copy link

@Mike-Solar Mike-Solar commented Dec 28, 2023

图片发不出来,只有一段CQ码。这是因为MessageSegment.image应该传入从图片中读取的二进制数据而不是图片的路径,我做了相应修改后就可以发出图片了。这没有解决100号和54号提交的问题。

@KafCoppelia KafCoppelia changed the base branch from master to dev-v0.4.x December 28, 2023 10:02
@KafCoppelia
Copy link
Member

KafCoppelia commented Feb 23, 2024

查了一下onebot adpter v11相关源码,MessageSegment.image() 可以传入图片路径,其内部当接收到 Path 类型时将进行转换。不知是否与 Pillow 版本有关。

我已发现有多个open issues都报告了类似的现象

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants