You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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: [login] Please type your phone number: xxx
[xxx] Enter authentication code
Phone number: xxx
Timeout: 0 seconds
Code type: TelegramMessage: 55489
Closing...
Closed
Exception in thread "main" java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095)
at telegram.login.Example.main(Example.java:80)
The text was updated successfully, but these errors were encountered:
turns out in it.tdlight.util.ScannerUtils the interruptibleReadLine(scanner) will read and return a blank line before verification code is entered. I use eclipse to run this app, not sure if such condition can happen in other IDE.
the informations in console are as below:
[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: [login] Please type your phone number: xxx
[xxx] Enter authentication code
Phone number: xxx
Timeout: 0 seconds
Code type: TelegramMessage: 55489
Closing...
Closed
Exception in thread "main" java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095)
at telegram.login.Example.main(Example.java:80)
The text was updated successfully, but these errors were encountered: