HTTP 403 · Forbidden
PHONE_NUMBER_BANNED
The provided phone number is banned from telegram.
HTTP 403
Authentication
When & why it happens
The supplied phone number is banned from Telegram and cannot be used to register or sign in.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "PHONE_NUMBER_BANNED" {
// handle this error
}
}
Related errors
2FA_CONFIRM_WAIT_XYou'll be able to reset your account in %v seconds. If not, account will be deleted in 1 week for security reasons.ACCESS_TOKEN_EXPIREDAccess token expired.ACCESS_TOKEN_INVALIDAccess token invalid.AUTH_BYTES_INVALIDThe provided authorization is invalid.AUTH_KEY_DUPLICATEDThe authorization key was used under two different IP addresses simultaneously and is now invalid.AUTH_KEY_INVALIDThe Authorization Key is invalid.AUTH_KEY_PERM_EMPTYThe method is unavailable for temporary authorization keys, not bound to permanent.AUTH_KEY_UNREGISTEREDThe key is not registered in the system.AUTH_RESTARTRestart the authorization process.AUTH_TOKEN_ALREADY_ACCEPTEDThe specified auth token was already accepted.AUTH_TOKEN_EXCEPTIONAn error occurred while importing the auth token.AUTH_TOKEN_EXPIREDThe authorization token has expired.