tdlib / td

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

Can someone show the references of the SetAuthenticationPhoneNumber() function #2839

Closed EllaSedova closed 6 months ago

EllaSedova commented 7 months ago

I want to register new users in telegram by phone number and manually enter the code from the sms. I can't get the SetAuthenticationPhoneNumber() to work. As I understand it, to run this function, you need to create a tdlibClient using NewClient(). But how to create an empty tdlibclient?

levlam commented 7 months ago

SMS can be received only by official mobile Telegram apps.

EllaSedova commented 7 months ago

Are there any other ways to register a new user using your own app?

levlam commented 6 months ago

No. Other apps, including official Telegram desktop apps, can't register new users.