This commit is contained in:
cdle
2021-10-07 07:54:58 +08:00
parent 913ff67010
commit 91ea4d1ae2
+3
View File
@@ -97,6 +97,9 @@ func init() {
b.Send(ct, s)
}
b.Handle(tb.OnPhoto, func(m *tb.Message) {
b.SendAlbum(m.Chat, tb.Album{&tb.Photo{File: tb.FromReader(m.Photo.FileReader)}})
// b.Download(&m.Photo.File,"")
// m.Text = fmt.Sprintf(`[CQ:image,url=%s]`, m.Photo.FileURL) + m.Caption
// m.Photo.FileReader.