From 913ff67010bb9296d9a4494b43358bc012420602 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Thu, 7 Oct 2021 04:30:52 +0800 Subject: [PATCH] update --- im/tg/tg.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/im/tg/tg.go b/im/tg/tg.go index 489f17f..d0a77ba 100644 --- a/im/tg/tg.go +++ b/im/tg/tg.go @@ -97,9 +97,11 @@ 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 - core.NotifyMasters(fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption) - Handler(m) + // b.Download(&m.Photo.File,"") + // m.Text = fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption + // m.Photo.FileReader. + // core.NotifyMasters(fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption) + // Handler(m) }) b.Handle(tb.OnText, Handler) logs.Info("监听telegram机器人")