diff --git a/handlers/middlewares/removeCommands.js b/handlers/middlewares/removeCommands.js index 61b2572..cf980c5 100644 --- a/handlers/middlewares/removeCommands.js +++ b/handlers/middlewares/removeCommands.js @@ -12,6 +12,7 @@ const middlewareHandler = async ({ chat, message }, next) => { if ( message && message.text && + message.entities[0].type !== 'code' && /^\/\w+/.test(message.text) && chat.type !== 'private' ) {