Update tg.go
This commit is contained in:
+2
-2
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user