I’ve gotten to the point of sending the auth.sendCode
method, with the following response:
('sentCode: ', {u'req_msg_id': 6324698204597889024L, u'result': {u'type': {u'len
gth': 5}, u'phone_registered': False, u'flags': 6, u'timeout': 120, u'next_type'
: {}, u'phone_code_hash': '52eb4ab096ea211b52'}})
This is using the telegram test servers. I have successfully used the same phone number in the telegram iPhone app and desktop application so I know the phone number is valid in production. (should it be valid on the test servers as well?)
When I follow auth.sendCode
with auth.signIn
I receive the following error response:
('authorization: ', {u'error_message': 'PHONE_NUMBER_UNOCCUPIED', u'error_code':
400})
Is there a step between these two methods that registers the phone number?
3
Answers
from https://core.telegram.org/api/auth
If you are sure, that your phone is registered, then the reason of this error also could be wrong/incomplete TdLibParameters. That was the case for me in my android project. I ended up with following list, that worked:
Have a look into this page . So the production phone registration does not apply to test_dc.
As per the explantion on that page: