HTTP 400 · Bad Request
PASSWORD_HASH_INVALID
The provided password hash is invalid.
HTTP 400
Authentication
When & why it happens
The 2FA password check failed. Either the password is wrong or the SRP parameters were stale — re-fetch account.getPassword and retry.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "PASSWORD_HASH_INVALID" {
// 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.