{ "nodes": [ { "name": "On clicking 'execute'", "type": "n8n-nodes-base.manualTrigger", "position": [ -60, 400 ], "parameters": {}, "typeVersion": 1, "id": "send-telegram-messages-from-sheet-in-batches-0" }, { "name": "Telegram", "type": "n8n-nodes-base.telegram", "position": [ 500, 400 ], "parameters": { "text": "Hello", "chatId": "={{ $json['Chat ID'] }}", "additionalFields": {} }, "typeVersion": 1, "id": "send-telegram-messages-from-sheet-in-batches-1" }, { "name": "Google Sheets", "type": "n8n-nodes-base.googleSheets", "position": [ 120, 400 ], "parameters": { "range": "A:A", "options": {}, "authentication": "oAuth2", "sheetId": "YOUR_SPREADSHEET_ID" }, "typeVersion": 1, "id": "send-telegram-messages-from-sheet-in-batches-2" }, { "name": "SplitInBatches", "type": "n8n-nodes-base.splitInBatches", "position": [ 320, 400 ], "parameters": { "options": {}, "batchSize": 30 }, "typeVersion": 1, "id": "send-telegram-messages-from-sheet-in-batches-3" }, { "name": "Wait1", "type": "n8n-nodes-base.wait", "position": [ 660, 180 ], "parameters": { "unit": "seconds", "amount": 30 }, "typeVersion": 1, "id": "send-telegram-messages-from-sheet-in-batches-4" } ], "connections": { "Wait1": { "main": [ [ { "node": "SplitInBatches", "type": "main", "index": 0 } ] ] }, "Telegram": { "main": [ [ { "node": "Wait1", "type": "main", "index": 0 } ] ] }, "Google Sheets": { "main": [ [ { "node": "SplitInBatches", "type": "main", "index": 0 } ] ] }, "SplitInBatches": { "main": [ [ { "node": "Telegram", "type": "main", "index": 0 } ] ] }, "On clicking 'execute'": { "main": [ [ { "node": "Google Sheets", "type": "main", "index": 0 } ] ] } }, "name": "Send Telegram Messages from a Sheet in Batches", "active": false, "pinData": {} }