Merge branch 'main' of https://github.com/cdle/sillyGirl into main
This commit is contained in:
+3
-1
@@ -64,6 +64,8 @@ func init() {
|
||||
Token: token,
|
||||
Poller: &tb.LongPoller{Timeout: 10 * time.Second},
|
||||
// ParseMode: tb.ModeMarkdownV2,
|
||||
URL: tg.Get("url"),
|
||||
|
||||
}
|
||||
if url := tg.Get("http_proxy"); url != "" {
|
||||
client, clientErr := buildClientWithProxy(url)
|
||||
@@ -282,7 +284,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,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