From c83cf25331103dc8a61d3d8a5ab3f853d98dfb2d Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Wed, 6 Oct 2021 20:57:07 +0800 Subject: [PATCH] update --- im/tg/tg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/im/tg/tg.go b/im/tg/tg.go index 3d991bf..a4461d8 100644 --- a/im/tg/tg.go +++ b/im/tg/tg.go @@ -60,7 +60,7 @@ func init() { paths := []string{} for _, v := range regexp.MustCompile(`\[CQ:image,file=([^\[\]]+)\]`).FindAllStringSubmatch(s, -1) { paths = append(paths, core.ExecPath+"/data/images/"+v[1]) - s = strings.Replace(s, fmt.Sprintf(v[0]), "", -1) + s = strings.Replace(s, fmt.Sprintf(`[CQ:image,file=%s]`, v[1]), "", -1) } ct := &tb.Chat{ID: int64(i)}