From c6790305ccb20831321c10d801ac11ec4502a88c Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Thu, 7 Oct 2021 04:22:20 +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 97d12cf..489f17f 100644 --- a/im/tg/tg.go +++ b/im/tg/tg.go @@ -97,7 +97,8 @@ func init() { b.Send(ct, s) } b.Handle(tb.OnPhoto, func(m *tb.Message) { - m.Text = fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption + m.Photo.FileURL + m.Text = fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption + core.NotifyMasters(fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption) Handler(m) }) b.Handle(tb.OnText, Handler)