You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
telebot/errors.go

27 lines
423 B
Go

package telebot
// Login error, which basically occurs on broken token.
type AuthError struct {
Payload string
}
type FetchError struct {
Payload string
}
type SendError struct {
Payload string
}
func (e AuthError) Error() string {
return "AuthError: " + e.Payload
}
func (e FetchError) Error() string {
return "FetchError: " + e.Payload
}
func (e SendError) Error() string {
return "SendError: " + e.Payload
}