Use vk-io, adding setHearFallbackHandler on an unknown command, the bot meets an infinite number of messages how to fix?

Adding:
updates.setHearFallbackHandler(async (context, next) => {
await context.send('there is no Such command :(');
});

The result:
There is no such command :('
There is no such command :('
There is no such command :('
There is no such command :('
There is no such command :('
...
There is no such command :('

How to make the answer was only once?
Preferably with a simple example, thank you...
April 4th 20 at 00:32
0 answer

Find more questions by tags Node.js