Telegram ボットと MediaDL 統合を使用してソーシャルメディアの動画を自動のにダウンロード
中級
これはContent Creation, Multimodal AI分野の自動化ワークフローで、11個のノードを含みます。主にSet, Wait, Telegram, HttpRequest, TelegramTriggerなどのノードを使用。 Telegram ボットと MediaDL インテグレーションを使用してソーシャルメディアの動画を自動のにダウンロードする
前提条件
- •Telegram Bot Token
- •ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "0a25db4fd0692af64b58f35e01611f2ef0b5bb9d6654c57ef3741021e7d8cc11",
"templateId": "7211"
},
"nodes": [
{
"id": "0bbb310f-047c-4d8f-bfb4-a92e9863d8e3",
"name": "Telegram Trigger",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
1216,
304
],
"webhookId": "a8cd8cc1-ce39-4adb-a389-cbca39849471",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "jKxgjobC2OVbNXTR",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "e3f39d0d-ca89-4315-b5c3-a0cf244e0db9",
"name": "ダウンロード",
"type": "n8n-nodes-base.httpRequest",
"position": [
2336,
304
],
"parameters": {
"url": "https://mediadl.app/api/proxy-download",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "fileUrl",
"value": "={{ $json.medias[0].url }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "*/*"
},
{
"name": "Accept-Language",
"value": "en-US,en;q=0.9,id;q=0.8,da;q=0.7"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "Referer",
"value": "https://mediadl.app/in?gad_source=1&gad_campaignid=22707685611&gbraid=0AAAAA_JALYirerzrfP-1sYYdbTB1Ig5si&gclid=CjwKCAjwwNbEBhBpEiwAFYLtGMgSfRH09djRgW12vplqCk4gfzg34u365DL6mY7MMNPyn5flg8pRjRoCyLIQAvD_BwE"
},
{
"name": "Sec-Fetch-Dest",
"value": "empty"
},
{
"name": "Sec-Fetch-Mode",
"value": "cors"
},
{
"name": "Sec-Fetch-Site",
"value": "same-origin"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36"
},
{
"name": "sec-ch-ua",
"value": "\"Not;A=Brand\";v=\"99\", \"Google Chrome\";v=\"139\", \"Chromium\";v=\"139\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Windows\""
}
]
}
},
"typeVersion": 4.2
},
{
"id": "19d3ee22-fd1e-4117-b2ef-aaa8a3517c1f",
"name": "Sent To Telegram Video",
"type": "n8n-nodes-base.telegram",
"position": [
2560,
304
],
"webhookId": "ee4a87d1-b5b4-4015-a548-ae05ccbcf816",
"parameters": {
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"operation": "sendVideo",
"binaryData": true,
"additionalFields": {
"fileName": "={{ $('Delay 3S').item.json.title }}.mp4"
}
},
"credentials": {
"telegramApi": {
"id": "jKxgjobC2OVbNXTR",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "b055ad08-6df0-44b7-8174-789f6be48b24",
"name": "URLのみフィルタリング",
"type": "n8n-nodes-base.set",
"position": [
1888,
304
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "cc8edbe6-e9c4-41ca-8f3d-c2a2538b07ae",
"name": "medias[0].url",
"type": "string",
"value": "={{ $json.medias[0].url }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b91deb65-fbcc-4fa3-bef2-2fd2c4de8583",
"name": "3秒遅延",
"type": "n8n-nodes-base.wait",
"position": [
1664,
304
],
"webhookId": "b2f58186-407f-423b-abfb-238845205460",
"parameters": {
"amount": 3
},
"typeVersion": 1.1
},
{
"id": "3eda9853-3b20-4072-8361-8930b0a9b861",
"name": "3秒遅延1",
"type": "n8n-nodes-base.wait",
"position": [
2112,
304
],
"webhookId": "64a268ce-677e-4aab-8c26-c0bb1d06ebf7",
"parameters": {
"amount": 3
},
"typeVersion": 1.1
},
{
"id": "875e46f0-d7a9-4610-ba72-c5bc4152b91a",
"name": "URLダウンロード",
"type": "n8n-nodes-base.httpRequest",
"position": [
1440,
304
],
"parameters": {
"url": "https://www.mediadl.app/api/download",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "url",
"value": "={{ $json.message.text }}"
},
{
"name": "format",
"value": "bestvideo+bestaudio/best"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "*/*"
},
{
"name": "Accept-Language",
"value": "en-US,en;q=0.9,id;q=0.8,da;q=0.7"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "Origin",
"value": "https://www.mediadl.app"
},
{
"name": "Referer",
"value": "https://www.mediadl.app/en"
},
{
"name": "Sec-Fetch-Dest",
"value": "empty"
},
{
"name": "Sec-Fetch-Mode",
"value": "cors"
},
{
"name": "Sec-Fetch-Site",
"value": "same-origin"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36"
},
{
"name": "sec-ch-ua",
"value": "\"Not;A=Brand\";v=\"99\", \"Google Chrome\";v=\"139\", \"Chromium\";v=\"139\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Windows\""
}
]
}
},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "bcd3a17b-8405-4fb7-b3af-7e8f76110634",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
1312,
96
],
"parameters": {
"color": 4,
"width": 340,
"height": 152,
"content": "## STEP 1 · Overview\nListens to a Telegram message, sends the URL to mediadl to prepare a download, waits, fetches the media via proxy, then replies to the same chat with the video."
},
"typeVersion": 1
},
{
"id": "2166082d-bfb9-4efd-b30b-de6819fa8747",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1792,
-16
],
"parameters": {
"color": 5,
"width": 232,
"height": 294,
"content": "## STEP 2 · Input & URL handling\n**Telegram Trigger:** expects a URL in `message.text`.\n**URL Download:** POSTs `{ url: message.text }` to mediadl to resolve the media.\n**Set (Filtering URL Only):** forwards `medias[0].url` for the final file fetch."
},
"typeVersion": 1
},
{
"id": "df1dc326-d9f1-4824-b143-6ed071b73eeb",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
2144,
-16
],
"parameters": {
"color": 6,
"width": 248,
"height": 278,
"content": "## STEP 3 · Reliability & Timing\nTwo 3-second Waits create spacing between: URL resolve → proxy fetch → send.\nHeaders/User-Agent mimic a browser for CORS/CDN acceptance.\nIf large files or slow hosts: increase delays or add retry logic."
},
"typeVersion": 1
},
{
"id": "c2c732ab-c034-49e3-8e42-aeb043899bd1",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2512,
0
],
"parameters": {
"color": 7,
"width": 248,
"height": 278,
"content": "## STEP 4 · Output & Limits\n**Download:** GET `proxy-download?fileUrl=...` to fetch the binary.\n**Send To Telegram Video:** replies to source chat with the file name from title.\nNote: Respect platform ToS/copyright; check Telegram file size limits for bots."
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"b91deb65-fbcc-4fa3-bef2-2fd2c4de8583": {
"main": [
[
{
"node": "b055ad08-6df0-44b7-8174-789f6be48b24",
"type": "main",
"index": 0
}
]
]
},
"e3f39d0d-ca89-4315-b5c3-a0cf244e0db9": {
"main": [
[
{
"node": "19d3ee22-fd1e-4117-b2ef-aaa8a3517c1f",
"type": "main",
"index": 0
}
]
]
},
"3eda9853-3b20-4072-8361-8930b0a9b861": {
"main": [
[
{
"node": "e3f39d0d-ca89-4315-b5c3-a0cf244e0db9",
"type": "main",
"index": 0
}
]
]
},
"875e46f0-d7a9-4610-ba72-c5bc4152b91a": {
"main": [
[
{
"node": "b91deb65-fbcc-4fa3-bef2-2fd2c4de8583",
"type": "main",
"index": 0
}
]
]
},
"0bbb310f-047c-4d8f-bfb4-a92e9863d8e3": {
"main": [
[
{
"node": "875e46f0-d7a9-4610-ba72-c5bc4152b91a",
"type": "main",
"index": 0
}
]
]
},
"b055ad08-6df0-44b7-8174-789f6be48b24": {
"main": [
[
{
"node": "3eda9853-3b20-4072-8361-8930b0a9b861",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - コンテンツ作成, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
ローカルなリード検索とコールドメール送信の自動化
Apify、AI、Gmail を使って地元のリードを自動検出してブルーノートを送信する
If
Set
Wait
+
If
Set
Wait
18 ノードMeak
コンテンツ作成
ウイルスの TikTok 動画ジェネレーター:VEED バーチャルアバターで UGC 動画を自動作成
VEED.io AIボーティング、ElevenLabs、GPT-4を使用してTikTok動画を自動作成
Set
Code
Wait
+
Set
Code
Wait
35 ノードDr. Firas
コンテンツ作成
💥 NanoBanana、Seedream 4、ChatGPT Image、Veo 3 を使って動画広告を自動化 - VIDEO
AI(NanoBanana、Seedream、GPT-4o、Veo 3)を使って動画広告キャンペーンを自動化し公開
Set
Code
Wait
+
Set
Code
Wait
63 ノードDr. Firas
コンテンツ作成
💥 HeyGen II - 私をクローン - アイデアからリリースまで:YouTube、TikTok、Instagram向けのChatGPT-5ビデオ自動化 - ビデオ
HeyGen、GPT-5、そしてソーシャル自動投稿を使って、音声入力による動画制作を自動化する
If
Set
Wait
+
If
Set
Wait
41 ノードDr. Firas
コンテンツ作成
💥 ビデオリンクからYouTubeサムネイルの自動作成
Templated.ioとBlotatoを使用してYouTubeサムネイルおよびソーシャルメディア公開の自動化
Set
Code
Wait
+
Set
Code
Wait
25 ノードDr. Firas
コンテンツ作成
LinkedInおよびXウイルスのなコンテンツ自動エンジン
AIを使ってLinkedInとXにウイルスのなコンテンツを自動生成して公開する
If
Set
Wait
+
If
Set
Wait
156 ノードDiptamoy Barman
コンテンツ作成