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

SocketTimeoutException in TelegramBot.getUpdates() #4

Closed
nzhiltsov opened this issue Dec 14, 2015 · 4 comments
Closed

SocketTimeoutException in TelegramBot.getUpdates() #4

nzhiltsov opened this issue Dec 14, 2015 · 4 comments

Comments

@nzhiltsov
Copy link

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?

@nzhiltsov nzhiltsov changed the title SocketTimeoutException in TelegramBot SocketTimeoutException in TelegramBot.getUpdates() Dec 14, 2015
@mukel
Copy link
Member

mukel commented Dec 14, 2015

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.

@mukel
Copy link
Member

mukel commented Dec 20, 2015

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.

@nzhiltsov
Copy link
Author

Thanks for the quick reply. Will try it.

@mukel
Copy link
Member

mukel commented May 11, 2016

Timeouts should be solved in the new version

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

2 participants