File size: 2,942 Bytes
bad1b41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
  "nodes": [
    {
      "parameters": {
        "chatId": "6082428873",
        "text": "=_hello_\nWhat's happens today\n{{ $json.explanation }}\n\n",
        "additionalFields": {
          "appendAttribution": false,
          "parse_mode": "HTML"
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        304,
        -16
      ],
      "id": "5e060d6a-6430-49c8-ba7e-1c988192c2de",
      "name": "Send a text message",
      "webhookId": "0c1cefb9-feb2-40f1-8d56-fd3efdfd7251",
      "credentials": {
        "telegramApi": {
          "id": "xtyS4FnQD7jP4b6g",
          "name": "Telegram account"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "seconds"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        -176,
        -16
      ],
      "id": "b79d01c3-9f5a-4c72-ac2d-2e96df4b031d",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "operation": "sendPhoto",
        "chatId": "6082428873",
        "file": "={{ $('Get the astronomy picture of the day').item.json.url }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        512,
        -16
      ],
      "id": "1ef30f8b-1d20-4414-b1cc-dd57e62c63ba",
      "name": "Send a photo message",
      "webhookId": "c8d34612-6add-4096-bc20-a55d90625c9a",
      "credentials": {
        "telegramApi": {
          "id": "xtyS4FnQD7jP4b6g",
          "name": "Telegram account"
        }
      }
    },
    {
      "parameters": {
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.nasa",
      "typeVersion": 1,
      "position": [
        112,
        -16
      ],
      "id": "c9cc9387-ce74-4aab-a3d7-fbc2d505f448",
      "name": "Get the astronomy picture of the day",
      "credentials": {
        "nasaApi": {
          "id": "FnPqtSq3RyHqM6Ay",
          "name": "NASA account"
        }
      }
    }
  ],
  "connections": {
    "Send a text message": {
      "main": [
        [
          {
            "node": "Send a photo message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get the astronomy picture of the day",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get the astronomy picture of the day": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "48f9007a4d0e1a91936b441574a682e3216460c6ca816348665f2c35d7390c3f"
  }
}