update
This commit is contained in:
@@ -96,6 +96,10 @@ 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
|
||||
Handler(m)
|
||||
})
|
||||
b.Handle(tb.OnText, Handler)
|
||||
logs.Info("监听telegram机器人")
|
||||
b.Start()
|
||||
|
||||
Reference in New Issue
Block a user