HTTP 400 · Bad Request
2FA_CONFIRM_WAIT_X
You'll be able to reset your account in %v seconds. If not, account will be deleted in 1 week for security reasons.
HTTP 400
Authentication
When & why it happens
The server is rate-limiting this operation. Sleep for the duration the server reports before retrying.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "2FA_CONFIRM_WAIT_X" {
// handle this error
}
}
Related errors
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.AUTH_TOKEN_INVALIDThe specified auth token is invalid.