2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-31 14:15:25 +00:00

Add middlewares/antiflood

This commit is contained in:
Wojciech Pawlik
2020-06-06 10:51:46 +02:00
parent 433854e154
commit a11e35d3a7
5 changed files with 31 additions and 3 deletions

View File

@@ -8,9 +8,7 @@ const { config } = require('../utils/config');
/** @type { import('telegraf/typings').Telegraf<ExtendedContext> } */
const bot = new Telegraf(config.token);
if (process.env.NODE_ENV === 'development') {
bot.polling.offset = -1;
}
bot.polling.offset = -1;
module.exports = bot;