tdlight-team / tdlight-java

Complete Bot and Userbot Telegram library based on TDLib
https://t.me/TDLight
GNU Lesser General Public License v3.0
266 stars 43 forks source link

no response after I entered correct verification code in console #235

Open crazysvn opened 5 days ago

crazysvn commented 5 days ago

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)

crazysvn commented 4 days ago

must be because I didn't use app id

crazysvn commented 4 days ago

after I set correct api_id and api_hash, still no response

crazysvn commented 3 days ago

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.