tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.16k stars 1.45k forks source link

SetAuthenticationPhoneNumber don't work #3129

Open Faraon366 opened 1 week ago

Faraon366 commented 1 week ago

calling the function: SetAuthenticationPhoneNumber It returns: Ok. The state changes to:

{'@type': 'updateAuthorizationState', 'authorization_state': {'@type': 'authorizationStateWaitCode', 'code_info': {'@type': 'authenticationCodeInfo', 'phone_number': '+number', 'type': {'@type': 'authenticationCodeTypeTelegramMessage', 'length': 5}, 'timeout': 0}}, '@client_id': 1}

code don't receive. sms You won't be able to send an SMS either, because you won't be able to do a Resend code either.

All authorizations say that the code is authenticationCodeTypeTelegramMessage but this is not the case

levlam commented 1 week ago

You can create new accounts only though the official mobile Telegram apps.

Faraon366 commented 1 week ago

Now it's clear why this is happening. Tell me, please, does Telegram X work official or not?

I'm new to the developer plan. If I'm going to make an application, how do I understand and inform the user that he must register in an offline application. Some kind of confusion. It is not clear whether there is a problem on my part or on the part of the telegram

levlam commented 1 week ago

The user must register using another app. Then it can log in to your app using QR code authentication, or entering the code sent in the official app.