Open crazysvn opened 5 days ago
must be because I didn't use app id
after I set correct api_id and api_hash, still no response
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] 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)