mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
ADD: Telegram bot as notification provider
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user