zebflow 0.11.14

Reactive web automation platform — pipelines, templates, and real-time collaboration in a single binary.
Documentation
{
  "apiVersion": "zebflow.com/v1",
  "kind": "Pipeline",
  "metadata": {
    "name": "tg-delete-webhook"
  },
  "spec": {
    "id": "tg-delete-webhook",
    "nodes": [
      {
        "id": "trigger",
        "kind": "trigger.function",
        "config": {
          "description": "Removes the bot's Telegram webhook."
        },
        "input_pins": [],
        "output_pins": [
          "out"
        ]
      },
      {
        "id": "delete",
        "kind": "http.response.fetch",
        "config": {
          "method": "POST",
          "url": "https://api.telegram.org/bot{{ $placeholder.BOT_TOKEN }}/deleteWebhook",
          "headers": {
            "Content-Type": "application/json"
          },
          "body": "{}"
        },
        "input_pins": [
          "in"
        ],
        "output_pins": [
          "out"
        ]
      },
      {
        "id": "clear",
        "kind": "kv.entry.delete",
        "config": {
          "key": "telegram:webhook:{{ input.function.config.credential_id }}"
        },
        "input_pins": [
          "in"
        ],
        "output_pins": [
          "out"
        ]
      }
    ],
    "edges": [
      {
        "from_node": "trigger",
        "from_pin": "out",
        "to_node": "delete",
        "to_pin": "in"
      },
      {
        "from_node": "delete",
        "from_pin": "out",
        "to_node": "clear",
        "to_pin": "in"
      }
    ]
  }
}