This commit is contained in:
shoopea 2019-06-09 21:04:20 +08:00
parent 4eb220622c
commit 2bbf85d354

4
bot.go
View File

@ -276,9 +276,7 @@ func botMsgLoad(m *tb.Message) {
TGCmdQueue <- c
resp, err := http.Get(m.Payload)
if err != nil {
return err
}
logOnError(err, "botMsgLoad : Get")
defer resp.Body.Close()
buf := new(bytes.Buffer)
buf.ReadFrom(resp.Body)