kykint

Fix normal message detection

Showing 1 changed file with 1 additions and 1 deletions
...@@ -104,7 +104,7 @@ function translate(message, chatId) { ...@@ -104,7 +104,7 @@ function translate(message, chatId) {
104 } 104 }
105 105
106 // [Any normal message which is not a command (not starting with '/')] 106 // [Any normal message which is not a command (not starting with '/')]
107 -bot.onText(/(?!\/)(.+)/, (msg, match) => { 107 +bot.onText(/^(?!\/)(.+)/, (msg, match) => {
108 const chatId = msg.chat.id; 108 const chatId = msg.chat.id;
109 const chatType = msg.chat.type; 109 const chatType = msg.chat.type;
110 const received_msg = match[1]; 110 const received_msg = match[1];
......