Authentication Data console Login - OTR/Kotlin-Telegram-Client GitHub Wiki

When you use the following line:

AuthenticationData.consoleLogin()

On the first run it asks you for a phone number to receive a verification code:

  1. Type phone
  2. Type your phone number (e.g. +13010000000)
  3. Check your Mobile or Desktop client where you are logged in with this number. You will get a message with some verification code from Telegram account
  4. Type that verification code (e.g. 87625)
[login] Do you want to login using a bot [token], a [phone] number, or a [qr] code? [token/phone/qr]:

phone

[login] Please type your phone number: +13010000000

[+13010000000] Enter authentication code
Phone number: 13010000000
Timeout: 0 seconds
Code type: TelegramMessage: 87625