В
var chatId = msg.from.id;
if(chatId == owner) {
var text1 = match[1];
var text1 = match[2];
if(text1==undefined) text1= match[3];
if(text2==undefined) text2= match[4];
bot.sendMessage(text1, 'Вам ответили!\nОтвет: '+text2);
bot.sendMessage(chatId, 'Ответ отправлен!');
}
else {
bot.sendMessage(chatId, 'Отказано в доступе');
}
});