yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.3k stars 1.5k forks source link

How to distribute the responses of two users who pass in parallel? #1021

Open FlDanyT opened 1 year ago

FlDanyT commented 1 year ago

Hello! I am writing a telegram bot on node.js, api - 'node-telegram-bot-api'. The bot makes a poll and sends the results of the answer to the administrator, when two users vote at the same time, the answer of the first is assigned to the second. I was looking for a solution, but I couldn't find it. Can you suggest how to solve the problem?