From 6fefa1803d8ad929d8d8d1f41b522f9112c9adb4 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Wed, 6 Oct 2021 20:59:14 +0800 Subject: [PATCH] update --- im/tg/tg.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/im/tg/tg.go b/im/tg/tg.go index a4461d8..a549f05 100644 --- a/im/tg/tg.go +++ b/im/tg/tg.go @@ -62,8 +62,9 @@ func init() { paths = append(paths, core.ExecPath+"/data/images/"+v[1]) s = strings.Replace(s, fmt.Sprintf(`[CQ:image,file=%s]`, v[1]), "", -1) } - ct := &tb.Chat{ID: int64(i)} + ct := &tb.Chat{ID: int64(i)} + b.Send(ct, s) if len(paths) > 0 { is := []tb.InputMedia{} for index, path := range paths {