Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
crazysvn opened this issue Nov 24, 2024 · 3 comments
Open

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

crazysvn opened this issue Nov 24, 2024 · 3 comments

Comments

@crazysvn
Copy link

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)

@crazysvn
Copy link
Author

must be because I didn't use app id

@crazysvn
Copy link
Author

after I set correct api_id and api_hash, still no response

@crazysvn
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant