-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.js
More file actions
29 lines (28 loc) · 765 Bytes
/
example.js
File metadata and controls
29 lines (28 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var rnotify = require('./index');
rnotify({
telegram: {
token: 'TELEGRAM_TOKEN',
},
gmail: {
email: 'YOUR_EMAIL',
password: 'YOUR_PASSWORD',
from: 'YOUR_NAME',
},
twilio: {
"from": "TWILIO_PHONE_NUMBER",
"accountSid": "TWILIO_ACCOUNT_SID",
"authToken": "TWILIO_AUTH_TOCKEN"
},
facebook: {
"login": "FACEBOOK_LOGIN",
"password": "FACEBOOK_PASSWORD",
},
}).then(p => {
p.telegram.send('Title', 'message', 'TARGET_ID'); //you can get it by sending /getid to @myidbot
p.send('Title', 'Hello', {
telegram: ['TARGET_ID'],
gmail: ['TARGET_EMAIL'],
twilio: ['TARGET_PHONE_NUMBER'],
facebook: ['TARGET_FACEBOOK_ID'],
});
});