Update tg.go
This commit is contained in:
+2
-2
@@ -64,7 +64,7 @@ func init() {
|
|||||||
Token: token,
|
Token: token,
|
||||||
Poller: &tb.LongPoller{Timeout: 10 * time.Second},
|
Poller: &tb.LongPoller{Timeout: 10 * time.Second},
|
||||||
// ParseMode: tb.ModeMarkdownV2,
|
// ParseMode: tb.ModeMarkdownV2,
|
||||||
Url: tg.Get("url")
|
Url: tg.Get("url"),
|
||||||
}
|
}
|
||||||
if url := tg.Get("http_proxy"); url != "" {
|
if url := tg.Get("http_proxy"); url != "" {
|
||||||
client, clientErr := buildClientWithProxy(url)
|
client, clientErr := buildClientWithProxy(url)
|
||||||
@@ -283,7 +283,7 @@ func (sender *Sender) Reply(msgs ...interface{}) (int, error) {
|
|||||||
sender.Reply(err)
|
sender.Reply(err)
|
||||||
return 0, nil
|
return 0, nil
|
||||||
} else {
|
} 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 {
|
if err == nil {
|
||||||
rt = &rts[0]
|
rt = &rts[0]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user