title: Antispam thtottler
body: <p>I am working on creating a telegram bot, I want to make an anti-spam system, that is, when a person presses a button too many times, the bot will freeze for him for a certain number of seconds, it is possible to write a message about blocking. People in other matters do not help me.</p>
  <pre><code>import {
      bot
  } from '../token.js';
  
  import {
      keyboardMain
  } from '../keyboards/keyboardsMain.js';
  
  export function commands() {
      bot.on('message', msg =&gt; {
          const text = msg.text;
          const chatId = msg.chat.id;
  
          if (text === '/start') {
             return bot.sendMessage(chatId, 'hello', keyboardMain);
          }
  
          return bot.sendMessage(chatId, 'error');
      });
  }
  </code></pre>