diff --git a/botEngine.js b/botEngine.js index dad4362..d8d3e16 100644 --- a/botEngine.js +++ b/botEngine.js @@ -35,10 +35,10 @@ let storeFileCallback = (err, filePath, chatId, photoId) => { if (admin_chatId !== chatId) notifyAdmin(response, photoId); } else { response = config.messages.sendieResponse.fileSuccessfullySaved; - response = message.replace('{fileLocation}', filePath); + response = response.replace('{fileLocation}', filePath); telegram.sendMessage(chatId, response); response = config.messages.adminNotifications.fileSuccessfullySaved; - response = message.replace('{fileLocation}', filePath); + response = response.replace('{fileLocation}', filePath); if (admin_chatId !== chatId) notifyAdmin(response, photoId); } };