-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtelegram_notification_bot.json
More file actions
55 lines (55 loc) · 1.45 KB
/
telegram_notification_bot.json
File metadata and controls
55 lines (55 loc) · 1.45 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
{
"name": "Telegram Notification Bot",
"description": "Scrapes a webpage, extracts key info, and sends a Telegram notification with the result",
"nodes": [
{
"id": "node-1",
"type": "automationStep",
"data": {
"step": {
"id": "step-1",
"type": "navigate",
"description": "Go to news site",
"url": "https://news.ycombinator.com"
}
},
"position": { "x": 0, "y": 0 }
},
{
"id": "node-2",
"type": "automationStep",
"data": {
"step": {
"id": "step-2",
"type": "extract",
"description": "Extract top story title",
"selector": ".titleline > a",
"attribute": "textContent",
"storeKey": "topStory"
}
},
"position": { "x": 0, "y": 100 }
},
{
"id": "node-3",
"type": "automationStep",
"data": {
"step": {
"id": "step-3",
"type": "telegramSendMessage",
"description": "Send top story to Telegram",
"credentialId": "my-telegram-bot",
"chatId": "{{TELEGRAM_CHAT_ID}}",
"text": "Top HN Story: {{topStory}}",
"parseMode": "Markdown",
"storeKey": "telegramResult"
}
},
"position": { "x": 0, "y": 200 }
}
],
"edges": [
{ "id": "e1-2", "source": "node-1", "target": "node-2" },
{ "id": "e2-3", "source": "node-2", "target": "node-3" }
]
}