From d245f6b13b5d2fb00ea6b6728e7f201eec9918a6 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Wed, 6 Oct 2021 21:18:24 +0800 Subject: [PATCH] update --- im/tg/tg.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/im/tg/tg.go b/im/tg/tg.go index 440de0a..993e2b6 100644 --- a/im/tg/tg.go +++ b/im/tg/tg.go @@ -59,12 +59,10 @@ func init() { core.GroupPushs["tg"] = func(i, j int, s string) { paths := []string{} ct := &tb.Chat{ID: int64(i)} - b.Send(ct, s) 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(`[CQ:image,file=%s]`, v[1]), "", -1) } - if len(paths) > 0 { is := []tb.InputMedia{} for index, path := range paths {