Black Friday: 20% off

Telegram errors

SESSION_PASSWORD_NEEDED and other login errors

Something blocked the login: the code, the password, the number or the app.

Based only on Telegram's official documentation, checked on November 25, 2026.

The errors

  • SESSION_PASSWORD_NEEDED401

    “2FA is enabled, use a password to login.”

    Source: Error database (errors.json)
  • PASSWORD_HASH_INVALID400

    “The provided password hash is invalid.”

    Source: auth.checkPassword
  • PHONE_CODE_INVALID400

    “The provided phone code is invalid.”

    Source: auth.signIn
  • PHONE_CODE_EXPIRED400

    “The phone code you provided has expired.”

    Source: auth.signIn
  • PHONE_NUMBER_INVALID406

    “The phone number is invalid.”

    Source: auth.sendCode
  • PHONE_NUMBER_FLOOD400

    “You asked for the code too many times.”

    Source: auth.sendCode
  • PHONE_PASSWORD_FLOOD406

    “You have tried logging in too many times.”

    Source: auth.sendCode
  • API_ID_INVALID400

    “API ID invalid.”

    Source: auth.sendCode
  • API_ID_PUBLISHED_FLOOD400

    “This API id was published somewhere, you can't use it now.”

    Source: auth.sendCode
  • UPDATE_APP_TO_LOGIN406

    “Please update your client to login.”

    Source: auth.sendCode
  • AUTH_RESTART500

    “Restart the authorization process.”

    Source: auth.sendCode

What it means

Telegram returns SESSION_PASSWORD_NEEDED at sign-in "if the user has two-factor authentication enabled". The login then needs the account's password, and a wrong password returns PASSWORD_HASH_INVALID.

Source: User authorization: 2FA

PHONE_NUMBER_FLOOD and PHONE_PASSWORD_FLOOD mean too many attempts: too many code requests, or too many login attempts.

Source: auth.sendCode

API_ID_INVALID and API_ID_PUBLISHED_FLOOD concern the app credentials (api_id), not the account. Telegram blocks an api_id that "was published somewhere".

Source: auth.sendCode

What to do

  1. 1

    SESSION_PASSWORD_NEEDED: enter the account's two-step verification password.

    Source: Error database (errors.json)
  2. 2

    PHONE_CODE_EXPIRED: request a new code. PHONE_CODE_INVALID: check the code and type it again.

    Source: auth.signIn
  3. 3

    AUTH_RESTART: start the login again from the beginning.

    Source: auth.sendCode
  4. 4

    UPDATE_APP_TO_LOGIN: update the app, then log in again.

    Source: auth.sendCode
  5. 5

    PHONE_NUMBER_FLOOD or PHONE_PASSWORD_FLOOD: stop requesting codes and trying passwords. The documentation does not say how long to wait.

    Source: auth.sendCode

Official sources

Related errors

All Telegram errors

Spend less time on errors

TeleBoost shows each account's status and why a send failed, in plain words, across all your Telegram accounts.