mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix:onebot回复图片
This commit is contained in:
parent
aaaee383a8
commit
04b331af71
1 changed files with 9 additions and 0 deletions
|
|
@ -734,6 +734,15 @@ export async function getImg (e) {
|
|||
e.img = i
|
||||
}
|
||||
}
|
||||
if (e.reply_id) {
|
||||
let reply = (await e.getReply(e.reply_id)).message;
|
||||
for (const val of reply) {
|
||||
if (val.type === "image") {
|
||||
e.img = [val.url];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return e.img
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue