hpi-swa-teaching / TelegramClient

TelegramClient is a Squeak-Client for the widely used Telegram-Messenger. It aims to provide features such as Authentication, Contacts, Message and Media sending and a minimal UI as well as as a Zen-mode and receiving messages in the background. (SWT22-11)
MIT License
16 stars 9 forks source link

Register new telegram user via Squeak #304

Open LinqLover opened 3 years ago

LinqLover commented 3 years ago

I can enter a phone number that belongs to an existing account to connect to this account to Squeak. However, if the entered phone number is not yet known to the servers, and I receive a verification code via SMS instead, the Telegram UI does not react on entering this validation code. Simply nothing happens!

As a very first step, let's show an error message in this case.

LinqLover commented 3 years ago

In addition, after filling in the validation code, the auth handler reaches the state authorizationStateWaitRegistration which not yet appears to be implemented. In this case, the terms of service should be displayed to the user so that they can accept or decline them. See https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1authorization_state_wait_registration.html.