kykint

Recognize multi line input

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