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

Use long polling #123

Open
sanderkob opened this issue Aug 23, 2023 · 0 comments
Open

Use long polling #123

sanderkob opened this issue Aug 23, 2023 · 0 comments

Comments

@sanderkob
Copy link

What is needed to implement long polling? Simply changing the timeout value in

snprintf(payload, BUFFER_SMALL, "{\"limit\":1,\"timeout\":0,\"offset\":%" INT32 "}", m_lastUpdateId);

does not work, at least not in my setup.
I was expecting this to work, since the connection from the bot to the server is only closed when instructed by the server.

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