{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Telegram bot — inbound messages",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "tg",
      "type": "input.telegram",
      "label": "Telegram inbound",
      "category": "trigger",
      "config": {
        "token": "${credential.telegram.token}",
        "baseUrl": ""
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Route to support",
      "category": "utility",
      "config": {
        "message": "TG {{ $json.from }}: {{ $json.message }}"
      },
      "position": {
        "x": 530,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "tg",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "tg"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "SETUP: create a bot with @BotFather and paste its token (or a ${credential.telegram.token} reference) — then every message to your bot runs this flow. Test simulates one inbound message."
  }
}