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

requests in the queue? #21

Closed
abbas-bafekr opened this issue Aug 17, 2015 · 1 comment
Closed

requests in the queue? #21

abbas-bafekr opened this issue Aug 17, 2015 · 1 comment

Comments

@abbas-bafekr
Copy link

hi
for example, if 50 requests send from user A, after that run the application, after that send 1 request from user B,when the answer to user B? Probably act program such as queue, if your app acts such as queue and assume each request needs one second time to answer, so answer to user B after 50 seconds?
is it right?

@MrRoundRobin
Copy link
Member

hi,
the update processing is part of your application.
you can process the updates in parallel like

var updates = await Bot.GetUpdates(offset);

Parallel.ForEach(updates, update => {
   DoStuff(update);
});

or you can make a web service an register a webhook which is called every time an update comes in (https://core.telegram.org/bots/api#setwebhook)

hope this helps

tuscen added a commit that referenced this issue Feb 18, 2022
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