上一个随机图片未完成前拒绝请求

This commit is contained in:
fumiama
2021-06-04 13:51:37 +08:00
parent 33dc16956d
commit f126d44764
3 changed files with 10 additions and 3 deletions

26
api/msgext/msgext.go Normal file
View File

@@ -0,0 +1,26 @@
package msgext
import (
"github.com/wdvxdr1123/ZeroBot/message"
)
//@全体成员
func AtAll() message.MessageSegment {
return message.MessageSegment{
Type: "at",
Data: map[string]string{
"qq": "all",
},
}
}
//无缓存发送图片
func ImageNoCache(url string) message.MessageSegment {
return message.MessageSegment{
Type: "image",
Data: map[string]string{
"file": url,
"cache": "0",
},
}
}