What PHONE_CODE_EXPIRED means
Login methods such as auth.signIn answer this way when the confirmation code has expired and is no longer accepted. The response code is 400. Next to it are PHONE_CODE_INVALID (the code does not match the one sent) and PHONE_CODE_EMPTY (no code was passed). The first of them has its own page, PHONE_CODE_INVALID.
Why the code expires
- Too much time passed between requesting the code and entering it.
- After the first request you asked for a code again, and the previous one stopped working.
- The login was started again in another window or on another device.
What to do
- Request a new code and enter the newest one.
- Keep the device that receives the code at hand before you start the login.
- Do not request a code many times in a row. Otherwise Telegram answers
PHONE_NUMBER_FLOOD, and the login has to wait.
How TG Combine handles it
When you log in by number, the panel shows a plain message instead of the code: the code expired and you should request a new one. After that, request the code again and enter it right away.