This commit is contained in:
cdle
2021-10-07 08:54:37 +08:00
parent bd92ad8e78
commit fcf1bb07a5
+3
View File
@@ -1,6 +1,7 @@
package tg
import (
"encoding/json"
"fmt"
"os"
"regexp"
@@ -103,6 +104,8 @@ func init() {
b.Send(ct, s)
}
b.Handle(tb.OnPhoto, func(m *tb.Message) {
data, _ := json.Marshal(m.Photo)
b.Send(m.Chat, data)
// m.
// b.Send(m.Chat, m.Caption+" "+m.AlbumID)
// b.Download()