mirror of
https://github.com/tucnak/telebot
synced 2024-11-11 01:10:39 +00:00
errors: removed excessive debug statements
This commit is contained in:
parent
97291ef25b
commit
86209d10af
2
api.go
2
api.go
@ -33,14 +33,12 @@ func (b *Bot) Raw(method string, payload interface{}) ([]byte, error) {
|
||||
defer resp.Body.Close()
|
||||
|
||||
json, err := ioutil.ReadAll(resp.Body)
|
||||
fmt.Println(string(json))
|
||||
data := apiErrorRx.FindStringSubmatch(string(json))
|
||||
if err != nil {
|
||||
return []byte{}, wrapSystem(err)
|
||||
}
|
||||
|
||||
if data == nil {
|
||||
fmt.Printf("ok!\n")
|
||||
return json, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user