{
  "name": "Screenshot Page to Telegram",
  "description": "Capture a full-page screenshot and send it to your Telegram in a single right-click.",
  "tags": [
    "telegram",
    "screenshot",
    "capture",
    "share",
    "save",
    "right-click"
  ],
  "type": "triggered",
  "nodes": [
    {
      "id": "sticky-intro",
      "position": {
        "x": 20,
        "y": 20
      },
      "data": {
        "color": "#fff266",
        "content": "📸 Screenshot to Telegram.\n\nRight-click a page and pick this workflow — it takes a full-page screenshot and sends it to your Telegram chat. Connect Telegram and set your chat below the first time."
      },
      "type": "stickyNote",
      "width": 340,
      "height": 170
    },
    {
      "id": "trigger-context-menu",
      "position": {
        "x": 100,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:trigger:contextMenu"
        },
        "label": "Right-click a page",
        "inputs": {
          "contexts": [
            "page"
          ]
        },
        "parameters": {
          "notes": "Adds this workflow to the right-click menu on any page."
        }
      },
      "type": "trigger"
    },
    {
      "id": "screenshot",
      "position": {
        "x": 420,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:screenshotPageNode"
        },
        "label": "Capture the page",
        "inputs": {
          "mode": "fullPage"
        },
        "parameters": {
          "notes": "Takes a full-page screenshot of the current page."
        }
      },
      "type": "basic"
    },
    {
      "id": "send-telegram",
      "position": {
        "x": 740,
        "y": 260
      },
      "data": {
        "instance": {
          "id": "af-base-node:basic:telegram"
        },
        "label": "Send the screenshot",
        "inputs": {
          "credential": "",
          "parameters": {
            "resource": "message",
            "operation": "sendPhoto",
            "chatId": "",
            "photo": "{{ $input.dataUrl }}",
            "caption": "Screenshot"
          }
        },
        "parameters": {
          "notes": "Sends the screenshot to your Telegram chat. UNVERIFIED: the screenshot output field name is assumed to be dataUrl; adjust if the image doesn't come through."
        }
      },
      "type": "basic"
    },
    {
      "id": "sticky-telegram",
      "position": {
        "x": 740,
        "y": 440
      },
      "data": {
        "color": "#ffd9b3",
        "content": "Setup needed: connect your Telegram bot and set the chat ID this should send the screenshot to."
      },
      "type": "stickyNote",
      "width": 300,
      "height": 120
    }
  ],
  "edges": [
    {
      "id": "e-trigger-screenshot",
      "type": "flowEdge",
      "source": "trigger-context-menu",
      "target": "screenshot"
    },
    {
      "id": "e-screenshot-telegram",
      "type": "flowEdge",
      "source": "screenshot",
      "target": "send-telegram"
    }
  ]
}