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]: AIOCQHTTP 无法发送图片 #778

Closed
jerryliang122 opened this issue May 17, 2024 · 0 comments · Fixed by #779
Closed

[Bug]: AIOCQHTTP 无法发送图片 #778

jerryliang122 opened this issue May 17, 2024 · 0 comments · Fixed by #779
Labels
bug? Bug或Bug修复相关 IM: aiocqhttp onebot协议适配器相关

Comments

@jerryliang122
Copy link
Contributor

部署方式

手动部署

消息平台适配器

aiocqhttp(使用 OneBot 协议接入的)

系统环境

linux 大陆

Python环境

python3.11

QChatGPT版本

使用最新的主分支

异常情况

发送图片出现报错。发现发送图片处理的函数的arg 是空的。
原因是msg返回的图片时msg.base64,但是没有相关处理类,增加一段代码即可解决该问题
if hasattr(msg, "base64"):
arg = msg.base64
msg_list.append(aiocqhttp.MessageSegment.image(f"base64://{arg}"))

日志信息

No response

启用的插件

No response

@jerryliang122 jerryliang122 added the bug? Bug或Bug修复相关 label May 17, 2024
@RockChinQ RockChinQ added the IM: aiocqhttp onebot协议适配器相关 label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? Bug或Bug修复相关 IM: aiocqhttp onebot协议适配器相关
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants