node-telegram-bot-api icon indicating copy to clipboard operation
node-telegram-bot-api copied to clipboard

How to avoid sending A user's result to B when calling an async result from another nodejs file

Open Dsvida1 opened this issue 3 years ago • 0 comments

My bot gets the message from the user. After getting the message, bot.js will call scan.js. Scan.js is responsible for processing the query transaction. When scan.js is executed, it will call back to bot.js, but I encounter a problem. If I use synchronous means then the bot is very slow in concurrent situation, but if I use asynchronous method to call scan.js callback the result will become as the title describes

Dsvida1 avatar Mar 25 '22 23:03 Dsvida1