Closed helxsz closed 5 years ago
Hi guy.
dev DC and live is different, so when you config {dev: true}, all API will call to dev DC, your phone didn't register on this DC
So please catch response API auth.sendCode field phone_registered: false or undefined.
if phone_registered = false, use "auth.signUp" instead "auth.signIn" with same params. Have fun.
:D
I am trying to get access to Telegram login with APPID, API HASH in the development test server mode.
Once setting dev to be true as shown below
I can get phone_code_hash and sms code, however whenever I input the sms code, I will receive the [42.055] Error 400 PHONE_NUMBER_UNOCCUPIED 2 2
if I set dev to be false
I will receive an error like this