Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetAuthenticationPhoneNumber don't work #3129

Open
Faraon366 opened this issue Nov 3, 2024 · 3 comments
Open

SetAuthenticationPhoneNumber don't work #3129

Faraon366 opened this issue Nov 3, 2024 · 3 comments

Comments

@Faraon366
Copy link

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
Copy link
Contributor

levlam commented Nov 4, 2024

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

@Faraon366
Copy link
Author

Faraon366 commented Nov 4, 2024

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
Copy link
Contributor

levlam commented Nov 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants