diff --git a/utils/common.js b/utils/common.js index 0fea08a..e1ab430 100644 --- a/utils/common.js +++ b/utils/common.js @@ -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 }