Created
June 10, 2025 15:08
-
-
Save zakirkun/f18ba32b3d7b3dd59f511eb2da6a0a79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Tiktok Downloader", | |
"nodes": [ | |
{ | |
"parameters": { | |
"httpMethod": "POST", | |
"path": "bot/hook", | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.webhook", | |
"typeVersion": 2, | |
"position": [ | |
0, | |
0 | |
], | |
"id": "67ddc68d-fc52-4c9b-b012-d2e5a47f0065", | |
"name": "Webhook", | |
"webhookId": "6587db72-e64b-4507-93e3-b4f432c47ca5" | |
}, | |
{ | |
"parameters": { | |
"conditions": { | |
"options": { | |
"caseSensitive": true, | |
"leftValue": "", | |
"typeValidation": "strict", | |
"version": 2 | |
}, | |
"conditions": [ | |
{ | |
"id": "896d1db2-955e-439b-b0b8-e581dccd475e", | |
"leftValue": "={{ $json.body.message.entities[0].type }}", | |
"rightValue": "url", | |
"operator": { | |
"type": "string", | |
"operation": "equals", | |
"name": "filter.operator.equals" | |
} | |
} | |
], | |
"combinator": "and" | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.if", | |
"typeVersion": 2.2, | |
"position": [ | |
220, | |
0 | |
], | |
"id": "50f4cf71-be48-4a82-abda-8909606c8a59", | |
"name": "If" | |
}, | |
{ | |
"parameters": { | |
"url": "https://api.ferdev.my.id/downloader/tiktok", | |
"sendQuery": true, | |
"queryParameters": { | |
"parameters": [ | |
{ | |
"name": "link", | |
"value": "={{ $('Webhook').item.json.body.message.text }}" | |
} | |
] | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.httpRequest", | |
"typeVersion": 4.2, | |
"position": [ | |
940, | |
-140 | |
], | |
"id": "2bdd63ca-3de5-4ddc-85fb-80f8a405b0a3", | |
"name": "HTTP Request" | |
}, | |
{ | |
"parameters": { | |
"chatId": "={{ $json.body.message.chat.id }}", | |
"text": "_Invalid url_", | |
"additionalFields": { | |
"parse_mode": "MarkdownV2" | |
} | |
}, | |
"type": "n8n-nodes-base.telegram", | |
"typeVersion": 1.2, | |
"position": [ | |
1200, | |
120 | |
], | |
"id": "dba4820d-a9de-4be0-9603-8f0a5d2a3d5d", | |
"name": "Telegram", | |
"webhookId": "68147f9d-ca25-4aca-a422-1f1c2312b747", | |
"credentials": { | |
"telegramApi": { | |
"id": "JMW53NfEPSvcUMsv", | |
"name": "Telegram account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"operation": "sendVideo", | |
"chatId": "={{ $('Webhook').item.json.body.message.chat.id }}", | |
"file": "={{ $json.data.play }}", | |
"additionalFields": { | |
"caption": "=Downloaded: {{ $json.data.title }}", | |
"reply_to_message_id": "={{ $('Webhook').item.json.body.message.message_id }}", | |
"thumb": "={{ $json.data.cover }}" | |
} | |
}, | |
"type": "n8n-nodes-base.telegram", | |
"typeVersion": 1.2, | |
"position": [ | |
1280, | |
-160 | |
], | |
"id": "4a43fda0-5063-4ab7-a3a1-a2501df4d3be", | |
"name": "Send Media", | |
"webhookId": "a7f06a65-43df-4ede-8733-65882c891f5c", | |
"credentials": { | |
"telegramApi": { | |
"id": "JMW53NfEPSvcUMsv", | |
"name": "Telegram account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"operation": "sendChatAction", | |
"chatId": "={{ $json.body.message.chat.id }}" | |
}, | |
"type": "n8n-nodes-base.telegram", | |
"typeVersion": 1.2, | |
"position": [ | |
700, | |
-140 | |
], | |
"id": "5873bc38-e09e-4fb3-badd-8d07a323dc7c", | |
"name": "Loading", | |
"webhookId": "cfa79b66-6361-444a-8266-6ffeaa60d819", | |
"credentials": { | |
"telegramApi": { | |
"id": "JMW53NfEPSvcUMsv", | |
"name": "Telegram account" | |
} | |
} | |
} | |
], | |
"pinData": {}, | |
"connections": { | |
"Webhook": { | |
"main": [ | |
[ | |
{ | |
"node": "If", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"If": { | |
"main": [ | |
[ | |
{ | |
"node": "Loading", | |
"type": "main", | |
"index": 0 | |
} | |
], | |
[ | |
{ | |
"node": "Telegram", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"HTTP Request": { | |
"main": [ | |
[ | |
{ | |
"node": "Send Media", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Loading": { | |
"main": [ | |
[ | |
{ | |
"node": "HTTP Request", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": true, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "4494b95e-eaff-45de-9a25-31fa8f754657", | |
"meta": { | |
"templateCredsSetupCompleted": true, | |
"instanceId": "70e255f2115350febe7e878364a3b139a7ff21a14deffd694936daa63e44b5bb" | |
}, | |
"id": "HYMRuCUjoL0QNIOa", | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment