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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user