Answer the question
In order to leave comments, you need to log in
How to “override” the methods of responding to messages when developing in Node.js for a telegram bot?
Hello. Tell me please. Let's say I have bot.onText(/\/hello/,...), respectively, handles the reception of the /hello command and there is bot.on('message',...), which processes all incoming messages. Now, when the user enters /hello, 2 handlers will work at once (for hello and for all messages). How to make it work only for hello?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question