{
  "name": "Automate Telegram message processing - separate text and files 💬📁",
  "nodes": [
    {
      "id": "6e742911-e7c0-47bc-b2f9-99789571617a",
      "name": "Waiting For Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -480,
        -64
      ]
    },
    {
      "id": "2d2c3f99-2df5-4971-bb9f-cfd5d20fa615",
      "name": "Get Chat Message Only",
      "type": "n8n-nodes-base.set",
      "position": [
        -32,
        128
      ]
    },
    {
      "id": "f06208a9-b6d8-4af1-9cc6-bb68f580df29",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -288,
        -80
      ]
    },
    {
      "id": "74a133e1-f969-4fb9-8661-c323279fca27",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -32,
        -256
      ]
    },
    {
      "id": "344226d7-fc3f-4170-ada7-6300c31b3f0d",
      "name": "Get Attachment Only",
      "type": "n8n-nodes-base.set",
      "position": [
        -32,
        -64
      ]
    },
    {
      "id": "0dbedca1-1b6d-47ab-8374-1a094d055962",
      "name": "Get & Download Attachment",
      "type": "n8n-nodes-base.telegram",
      "position": [
        208,
        -64
      ]
    },
    {
      "id": "ed661779-1132-43e3-98bb-60933169e8ec",
      "name": "Get Attachment",
      "type": "n8n-nodes-base.set",
      "position": [
        208,
        -256
      ]
    },
    {
      "id": "4ae82bee-86f6-424c-857e-bd04f213d9f7",
      "name": "Next Step !",
      "type": "n8n-nodes-base.noOp",
      "position": [
        416,
        -448
      ]
    },
    {
      "id": "d478957b-8d4f-4c85-8684-9be3311a59f7",
      "name": "Next Step !  ",
      "type": "n8n-nodes-base.noOp",
      "position": [
        416,
        -64
      ]
    },
    {
      "id": "cb0d1d8d-2c9b-48f2-af3d-3eab61173d3d",
      "name": "Next Step ! ",
      "type": "n8n-nodes-base.noOp",
      "position": [
        208,
        128
      ]
    },
    {
      "id": "3717aff4-90a4-4d7d-936a-d0dd4ad2e7e8",
      "name": "Get Chat Message Content",
      "type": "n8n-nodes-base.set",
      "position": [
        208,
        -448
      ]
    },
    {
      "id": "ee320c2a-da1d-46e7-b0de-325a9f398478",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -768
      ],
      "parameters": {
        "width": 1184,
        "height": 1072,
        "content": "## **Automate Telegram Message Processing - Separate Text and Files** 💬📁 \n### ⚡️ **Quick Demo**\n* **Input:** A message sent to your Telegram bot. It can be text-only, a file-only (like a PDF or image)"
      }
    },
    {
      "id": "cce8c746-8dcd-4919-8bc1-e532ad7aeda7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -768
      ],
      "parameters": {
        "width": 592,
        "height": 576,
        "content": "## 🔄 **WORKFLOW FLOW EXPLAINED**\n### ➡️ **INPUT STAGE**\n- Telegram Trigger\n- Listens for any new message sent to your Telegram bot.\n- Fetches the raw message data, including text, captions, and file.\n"
      }
    },
    {
      "id": "fcf591be-4432-44f7-b148-38dcab66dfa3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        320
      ],
      "parameters": {
        "width": 1184,
        "height": 288,
        "content": "## 🙏 **Thank You for Trying This Workflow**\nYour time and trust mean a lot! I truly appreciate you using the Telegram Message Parser.\n\nYour feedback is the key to making this template better, more eff"
      }
    },
    {
      "id": "4bfb1059-f967-4fe5-bc3a-f43c782fc6ca",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1168,
        -768
      ],
      "parameters": {
        "width": 592,
        "height": 352,
        "content": "## 🛠️ **CUSTOMIZATION OPTIONS**\n### ▶️ **Extend Functionality**\n- Save Attachments: Replace the final `NoOp` nodes with **Google Drive**, **Dropbox**, or **AWS S3** nodes to automatically archive file"
      }
    },
    {
      "id": "f38bb91a-5374-42c5-bb66-c784a56cb7b2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -176
      ],
      "parameters": {
        "width": 592,
        "height": 480,
        "content": "## 🩺 TROUBLESHOOTING\n### ❌ **Common Issues**\n- **\"Workflow doesn't trigger\"**\n  - Double-check that you selected the correct **Telegram credential** in the Trigger node.\n  - Ensure your workflow is **"
      }
    },
    {
      "id": "59547980-fcab-4962-aa1a-5a968f6765c0",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1168,
        -400
      ],
      "parameters": {
        "width": 592,
        "height": 784,
        "content": "## 🔧 **STEP-BY-STEP SETUP GUIDE**\n### 1️⃣ **Create Your Telegram Bot** ***(2 minutes)***\nCreate a new bot to receive messages and files.\n- Open Telegram and send a message to the official `@BotFather`"
      }
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Attachment Only",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Chat Message Only",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Get Chat Message Content",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Attachment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Attachment": {
      "main": [
        [
          {
            "node": "Get & Download Attachment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Attachment Only": {
      "main": [
        [
          {
            "node": "Get & Download Attachment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Waiting For Message": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Chat Message Only": {
      "main": [
        [
          {
            "node": "Next Step ! ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Chat Message Content": {
      "main": [
        [
          {
            "node": "Next Step !",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get & Download Attachment": {
      "main": [
        [
          {
            "node": "Next Step !  ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}