Remove unused regex and format errors and utils files

pull/382/head
Enrico204 4 years ago committed by Demian
parent 24ffa44e36
commit 844bbc5c97

@ -2,7 +2,6 @@ package telebot
import (
"fmt"
"regexp"
"strings"
)
@ -50,8 +49,6 @@ func NewAPIError(code int, msgs ...string) *APIError {
return err
}
var errorRx = regexp.MustCompile(`{.+"error_code":(\d+),"description":"(.+)"(?:,"parameters":{"retry_after":(\d+)})?}`)
var (
// General errors
ErrUnauthorized = NewAPIError(401, "Unauthorized")

Loading…
Cancel
Save