diff --git a/im/tg/tg.go b/im/tg/tg.go index d0a77ba..4e4a7d6 100644 --- a/im/tg/tg.go +++ b/im/tg/tg.go @@ -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.