test
This commit is contained in:
parent
4eb220622c
commit
2bbf85d354
4
bot.go
4
bot.go
@ -276,9 +276,7 @@ func botMsgLoad(m *tb.Message) {
|
|||||||
TGCmdQueue <- c
|
TGCmdQueue <- c
|
||||||
|
|
||||||
resp, err := http.Get(m.Payload)
|
resp, err := http.Get(m.Payload)
|
||||||
if err != nil {
|
logOnError(err, "botMsgLoad : Get")
|
||||||
return err
|
|
||||||
}
|
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
buf.ReadFrom(resp.Body)
|
buf.ReadFrom(resp.Body)
|
||||||
|
Loading…
Reference in New Issue
Block a user