-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hello,World.json
102 lines (102 loc) · 2.34 KB
/
Hello,World.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[
{
"id": "ec5b944c74b85273",
"type": "tab",
"label": "流程 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "d91f1f5749b65f75",
"type": "websocket in",
"z": "ec5b944c74b85273",
"name": "监听",
"server": "d57d2813420fedfb",
"client": "",
"x": 310,
"y": 260,
"wires": [
[
"a51ffb3b573645f0"
]
]
},
{
"id": "86851d8eb8da5792",
"type": "websocket out",
"z": "ec5b944c74b85273",
"name": "发送",
"server": "d57d2813420fedfb",
"client": "",
"x": 1030,
"y": 260,
"wires": []
},
{
"id": "a51ffb3b573645f0",
"type": "json",
"z": "ec5b944c74b85273",
"name": "",
"property": "payload",
"action": "obj",
"pretty": false,
"x": 490,
"y": 260,
"wires": [
[
"0de599b2880ca02d"
]
]
},
{
"id": "a77d9a69304f3d6a",
"type": "template",
"z": "ec5b944c74b85273",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\n \"action\": \"send_message\",\n \"data\":{\n \"chat_id\": {{payload.chat.id}},\n \"text\": \"Hello, World!\",\n \"reply_to_message_id\": {{payload.id}}\n }\n}",
"output": "str",
"x": 850,
"y": 260,
"wires": [
[
"86851d8eb8da5792"
]
]
},
{
"id": "0de599b2880ca02d",
"type": "switch",
"z": "ec5b944c74b85273",
"name": "",
"property": "payload.text",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "测试下 ws 连接",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 670,
"y": 260,
"wires": [
[
"a77d9a69304f3d6a"
]
]
},
{
"id": "d57d2813420fedfb",
"type": "websocket-listener",
"path": "/ws/example",
"wholemsg": "false"
}
]