From 0f42c9ee5597b7d5fb872ef5e74effd900e961a8 Mon Sep 17 00:00:00 2001 From: Pouria Ezzati Date: Mon, 2 Oct 2017 12:05:46 +0330 Subject: [PATCH] change delete message delay to 2 minutes --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index aeed837..e8543d4 100644 --- a/index.js +++ b/index.js @@ -43,7 +43,7 @@ bot.on('message', addUserHandler); bot.on('message', removeLinksHandler); bot.on('message', checkUsernameHandler); bot.on('new_chat_members', antibotHandler); -bot.on([ 'new_chat_members', 'left_chat_member' ], deleteAfter(10 * 60 * 1000)); +bot.on([ 'new_chat_members', 'left_chat_member' ], deleteAfter(2 * 60 * 1000)); bot.command('admin', adminHandler); bot.command('unadmin', unAdminHandler); bot.command('leave', leaveCommandHandler);