-
Notifications
You must be signed in to change notification settings - Fork 100
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
SocketTimeoutException in TelegramBot.getUpdates() #4
Comments
Thanks, I'll take a look this weekend. Polling is still the simpler method but Telegram removed the certificate limitation and now it's easier to set a webhook, you can take a look to https://github.com/mukel/GenginedBot for Google App Engine bot. I'll give some maintenance as soon as I have some free time. |
Updated a few things, but I can't reproduce the problem, it must be related to ScalajHttp timeouts, I doubled the timeouts as a temporal hack, but the timeout exception should be wrapped on the Future anyways. |
Thanks for the quick reply. Will try it. |
Timeouts should be solved in the new version |
There is a SocketTimeoutException when the bot does not receive any messages from the user. How to handle long polling properly? Increase timeout or switch to using webhooks?
The text was updated successfully, but these errors were encountered: