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