Update tg.go

This commit is contained in:
cdle
2021-10-14 05:35:30 +08:00
committed by GitHub
parent 9f5d209141
commit 0eaf5f276c
+2 -2
View File
@@ -64,7 +64,7 @@ func init() {
Token: token,
Poller: &tb.LongPoller{Timeout: 10 * time.Second},
// ParseMode: tb.ModeMarkdownV2,
Url: tg.Get("url")
Url: tg.Get("url"),
}
if url := tg.Get("http_proxy"); url != "" {
client, clientErr := buildClientWithProxy(url)
@@ -283,7 +283,7 @@ func (sender *Sender) Reply(msgs ...interface{}) (int, error) {
sender.Reply(err)
return 0, nil
} else {
rts, err := b.SendAlbum(r, tb.Album{&tb.Photo{File: tb.FromReader(f)}}, options...)
rts,u err := b.SendAlbum(r, tb.Album{&tb.Photo{File: tb.FromReader(f)}}, options...)
if err == nil {
rt = &rts[0]
}