forked from scraton/node-red-contrib-telegrambot-home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
payload-dynamic.json
80 lines (80 loc) · 1.76 KB
/
payload-dynamic.json
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[
{
"id": "96c0e76d4d75681e",
"type": "tab",
"label": "Flow 3",
"disabled": false,
"info": "",
"env": []
},
{
"id": "765f805efe882cab",
"type": "inject",
"z": "96c0e76d4d75681e",
"name": "",
"props": [{ "p": "payload" }, { "p": "topic", "vt": "str" }],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 180,
"y": 260,
"wires": [["80c368f988a30511"]]
},
{
"id": "80c368f988a30511",
"type": "function",
"z": "96c0e76d4d75681e",
"name": "build payload",
"func": "msg.method = \"sendPhoto\";\nmsg.payload = {\n photo: \"https://i.imgur.com/O6zVEHF.jpg\",\n caption: \"Dingle Peninsula, Ireland\\n\\n\" +\n \"Taken \" + msg.payload,\n};\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 220,
"y": 300,
"wires": [["ec1f779423e3f179"]]
},
{
"id": "ec1f779423e3f179",
"type": "telegrambot-payload",
"z": "96c0e76d4d75681e",
"name": "",
"bot": "1920d99f282aedbb",
"chatId": "1234",
"sendMethod": "",
"payload": "",
"x": 430,
"y": 300,
"wires": [["07fbb7e4d3d5a418"]]
},
{
"id": "07fbb7e4d3d5a418",
"type": "debug",
"z": "96c0e76d4d75681e",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 620,
"y": 300,
"wires": []
},
{
"id": "1920d99f282aedbb",
"type": "telegrambot-config",
"botname": "MyTelegramBot",
"usernames": "",
"chatIds": "",
"pollInterval": "300"
}
]