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机器人")