Can't receive auth code for accounts that switched to e-mail authentication forcibly.
In some countries, mobile operators are blocking Telegram authentication SMS. To work around this, Telegram has forcibly switched affected accounts to email-based authentication. For these accounts, tg-focus cannot complete authentication because no code is delivered.
I ran the following tests:
1) NORMAL account + TG-FOCUS in Docker
=> Received the code in the Telegram app on my phone.
2) EMAIL-FORCED account + Android Telegram app
=> Received the code in both the Telegram app on my phone and via email.
3) EMAIL-FORCED account + TG-FOCUS in Docker
=> Did not receive the code via email or in the Telegram app.
As you can see, for email-forced accounts, authentication works in the native Telegram app but not in tg-focus. For normal accounts, both methods work as expected.
If you can share tips on collecting more detailed debug information to help resolve this issue, I’d really appreciate it.
To the best of my knowledge, the condition of triggering email login option is blurry, plus there is little official statement or clarification for it.
Small update. After cool down for 2 days.
- EMAIL-FORCED account + TG-FOCUS in Docker => Received code successfully via Telegram app on my phone and email
Probably TG servers grant to official client more auth attempts rather then to TDLib based apps.