简体   繁体   中英

tow message send to telegram bot (Same Time)

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

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM