🎨 某些发图应用合并转发

This commit is contained in:
fumiama
2022-03-01 19:47:25 +08:00
parent 27e69ef022
commit f5936d9cb7
6 changed files with 36 additions and 15 deletions

View File

@@ -54,6 +54,13 @@ func init() {
ctx.SendChain(message.Text("ERROR: ", err))
} else {
p := "file:///" + setupath + "/" + sc.Path
if ctx.Event.GroupID != 0 {
ctx.SendGroupForwardMessage(ctx.Event.GroupID, message.Message{
ctxext.FakeSenderForwardNode(ctx,
message.Text(imgtype, ": ", sc.Name, "\n"), message.Image(p),
)})
return
}
ctx.SendChain(message.Text(imgtype, ": ", sc.Name, "\n"), message.Image(p))
}
})