tow message send to telegram bot (Same Time)

138 Views Asked by At

I am making a contest bot. I have a problem. When the user sends the answer to the question in one breath, it gives a point to both users and repeat next question. I want a point to be calculated for the one with the fastest answer. Thank you

click to look at code

1

There are 1 best solutions below

3
On

There is no guarantee that messages will arrive at the same time. Even if they will be sent together because it depends on:

  • your hosting network;
  • Telegram servers - there are multiple of them and 2 messages can go to different (more busy);
  • User network;
  • User device and app response time.

Everything together can't give you the same time, but may give almost the same time - few ms difference (50-500).