tg-focus icon indicating copy to clipboard operation
tg-focus copied to clipboard

Can't receive auth code for accounts that switched to e-mail authentication forcibly.

Open DmitryBondarenko opened this issue 1 month ago • 1 comments

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.

DmitryBondarenko avatar Nov 11 '25 01:11 DmitryBondarenko

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.

micl2e2 avatar Nov 11 '25 14:11 micl2e2

Small update. After cool down for 2 days.

  1. 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.

DmitryBondarenko avatar Nov 20 '25 07:11 DmitryBondarenko