diff --git a/src/utils/command.js b/src/utils/command.js index 3e4e135..614d93d 100644 --- a/src/utils/command.js +++ b/src/utils/command.js @@ -61,7 +61,7 @@ export const getCommandName = (context) => { } const text = context.message.text; - if (text && !text.startsWith("/")) { + if (!text || !text.startsWith("/")) { return ""; }