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

@@ -70,11 +70,7 @@ class Fredy {
}
_notify(newListings) {
const sendNotifications = newListings.map(payload => {
return notify.send(this._source.name, payload);
}
);
const sendNotifications = notify.send(this._source.name, newListings);
return Promise.all(sendNotifications).then(() => newListings)
}