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:
- Type
phone - Type your phone number (e.g.
+13010000000) - 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
- 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