ADD: Telegram bot as notification provider

This commit is contained in:
Christian Kellner
2018-02-06 13:57:32 +01:00
parent 97d7ba7f9a
commit f0d9c0cb00
9 changed files with 579 additions and 23 deletions

View File

@@ -3,11 +3,11 @@ const config = require('../../../conf/config.json');
/**
* simply prints out the found data to the console
* @param serviceName e.g immoscout
* @param payload the actual payload that is used to construct the message
* @param newListings an array with newly found listings
* @returns {Promise<Void> | void}
*/
exports.send = (serviceName, payload) => {
return Promise.resolve(console.info(`Found entry from service ${serviceName}:`, payload))
exports.send = (serviceName, newListings) => {
return Promise.resolve(console.info(`Found entry from service ${serviceName}:`, newListings))
};
/**