This commit is contained in:
cdle
2021-10-07 04:30:52 +08:00
parent c6790305cc
commit 913ff67010
+5 -3
View File
@@ -97,9 +97,11 @@ func init() {
b.Send(ct, s) b.Send(ct, s)
} }
b.Handle(tb.OnPhoto, func(m *tb.Message) { b.Handle(tb.OnPhoto, func(m *tb.Message) {
m.Text = fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption // b.Download(&m.Photo.File,"")
core.NotifyMasters(fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption) // m.Text = fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption
Handler(m) // m.Photo.FileReader.
// core.NotifyMasters(fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption)
// Handler(m)
}) })
b.Handle(tb.OnText, Handler) b.Handle(tb.OnText, Handler)
logs.Info("监听telegram机器人") logs.Info("监听telegram机器人")