mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 14:30:10 +08:00
saucenao 搜图 使用合并转发
This commit is contained in:
parent
696783b0fe
commit
557251a679
@ -94,8 +94,15 @@ func init() { // 插件主体
|
|||||||
"直链: ", "https://pixivel.moe/detail?id=", illust.Pid,
|
"直链: ", "https://pixivel.moe/detail?id=", illust.Pid,
|
||||||
)
|
)
|
||||||
if imgs != nil {
|
if imgs != nil {
|
||||||
|
if zero.OnlyGroup(ctx) {
|
||||||
|
ctx.SendGroupForwardMessage(ctx.Event.GroupID, message.Message{
|
||||||
|
ctxext.FakeSenderForwardNode(ctx, txt),
|
||||||
|
ctxext.FakeSenderForwardNode(ctx, imgs...),
|
||||||
|
})
|
||||||
|
} else {
|
||||||
// 发送搜索结果
|
// 发送搜索结果
|
||||||
ctx.Send(append(imgs, message.Text("\n"), txt))
|
ctx.Send(append(imgs, message.Text("\n"), txt))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// 图片下载失败,仅发送文字结果
|
// 图片下载失败,仅发送文字结果
|
||||||
ctx.SendChain(txt)
|
ctx.SendChain(txt)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user