diff --git a/handlers/middlewares/index.js b/handlers/middlewares/index.js index c49c05a..729b926 100644 --- a/handlers/middlewares/index.js +++ b/handlers/middlewares/index.js @@ -29,7 +29,7 @@ composer.on('text', removeCommandsHandler); composer.on( [ 'new_chat_members', 'left_chat_member' ], deleteJoinsAfter === false - ? Composer.passThru + ? Composer.passThru() : deleteAfter(millisecond(deleteJoinsAfter)) );