// Package auth provides authentication on top of tg.Client.
package auth import ( ) // IsKeyUnregistered reports whether err is AUTH_KEY_UNREGISTERED error. // // Deprecated: use IsUnauthorized. func ( error) bool { return tgerr.Is(, "AUTH_KEY_UNREGISTERED") } // IsUnauthorized reports whether err is 401 UNAUTHORIZED. // // https://core.telegram.org/api/errors#401-unauthorized func ( error) bool { return tgerr.IsCode(, 401) }