-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinvite.json
More file actions
114 lines (114 loc) · 2.62 KB
/
invite.json
File metadata and controls
114 lines (114 loc) · 2.62 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "invite.json",
"nodes": [
{
"parameters": {
"table": {
"__rl": true,
"mode": "list",
"value": ""
}
},
"id": "c3a80826-afad-4c75-8646-d37fbbb6d23d",
"name": "GetUserId",
"type": "n8n-nodes-base.mySql",
"position": [
-300,
-240
],
"typeVersion": 2.4
},
{
"parameters": {
"functionCode": "const id = $node[\"GetUserId\"].first().json.id; return [{ json: { link: `https://t.me/hitvpnbot?start=${id}` } }];"
},
"id": "8434c4c7-7aba-4b92-a2e2-1c18bad97882",
"name": "GenerateLink",
"type": "n8n-nodes-base.function",
"position": [
-100,
-240
],
"typeVersion": 1
},
{
"parameters": {
"chatId": "={{$json[\"message\"][\"chat\"][\"id\"]}}",
"text": "={{'Ваша реферальная ссылка: ' + $node[\"GenerateLink\"].json[\"link\"] + '\\nПригласите друзей и получите 50₽ на баланс за каждого!'}}",
"additionalFields": {}
},
"id": "815bc596-9fbd-44f3-b083-f3b4c3a64d33",
"name": "SendInviteLink",
"type": "n8n-nodes-base.telegram",
"position": [
100,
-240
],
"typeVersion": 1.2,
"webhookId": "f803973a-f3f2-4478-84af-dd12330d5687",
"credentials": {
"telegramApi": {
"id": "9hfs9gxsjeru7ML3",
"name": "Telegram account"
}
}
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-500,
-240
],
"id": "9670bafa-4f2b-49d1-a6f6-171e2758ca9a",
"name": "When clicking ‘Test workflow’"
}
],
"pinData": {},
"connections": {
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "GetUserId",
"type": "main",
"index": 0
}
]
]
},
"GetUserId": {
"main": [
[
{
"node": "GenerateLink",
"type": "main",
"index": 0
}
]
]
},
"GenerateLink": {
"main": [
[
{
"node": "SendInviteLink",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "27ea9208-3585-44fa-8be5-245132bf76e2",
"meta": {
"instanceId": "56b859031753f55d9255666ae2857967070b959d969d365ded7558e71170585b"
},
"id": "cBrJaZBkZBpcakGo",
"tags": []
}