8
n8n 中文网amn8n.com

🤖 Telegram机器人Webhook配置工具

中级

这是一个Building Blocks领域的自动化工作流,包含 7 个节点。主要使用 Set, Form, FormTrigger 等节点。 通过表单自动化配置Telegram机器人Webhook

前置要求
  • 无特殊前置要求,导入即可使用

使用的节点 (7)

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "BpTvf5dZvJNwRVzq",
  "meta": {
    "instanceId": "a98b2884375a41e5c54ee9fdf1ece06db7f5771d5abd20450875f3922d7c41f8"
  },
  "name": "🤖 Telegram机器人Webhook配置工具",
  "tags": [],
  "nodes": [
    {
      "id": "069cd3df-bc76-494f-ae26-997c6f20e405",
      "name": "Webhook配置表单",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -460,
        160
      ],
      "webhookId": "9488bcec-68a2-4d19-a81d-b0c13e2bdedc",
      "parameters": {
        "options": {},
        "formTitle": "Telegram Bot Webhook Configuration",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Bot API Token",
              "requiredField": true
            },
            {
              "fieldType": "url",
              "fieldLabel": "Webhook URL",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Quickly configure your Telegram bot webhook with this free tool. No data is stored - your information is processed in real-time for immediate webhook setup."
      },
      "typeVersion": 2.2
    },
    {
      "id": "695cf6d2-c03f-4aa9-88d7-c1d8ce0295f9",
      "name": "构建Telegram API URL",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a938e7ac-efa9-4124-976a-60a8bb85f624",
              "name": "telegram_api_url",
              "type": "string",
              "value": "=https://api.telegram.org/bot{{ $json['Bot API Token'] }}/setWebhook?url={{ $json['Webhook URL'] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "0ebd493a-8e29-4463-bc86-f631102557d7",
      "name": "重定向到Telegram API",
      "type": "n8n-nodes-base.form",
      "position": [
        440,
        160
      ],
      "webhookId": "605eff30-86b5-4638-885b-5e84e7fec134",
      "parameters": {
        "operation": "completion",
        "redirectUrl": "={{ $json.telegram_api_url }}",
        "respondWith": "redirect"
      },
      "typeVersion": 1
    },
    {
      "id": "03c8261a-4b83-4e3f-bd1a-ff7361271987",
      "name": "表单收集说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        -220
      ],
      "parameters": {
        "width": 500,
        "height": 540,
        "content": "## 表单输入收集"
      },
      "typeVersion": 1
    },
    {
      "id": "d5680d48-d3c4-4495-a973-2286a0865619",
      "name": "URL处理说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -220
      ],
      "parameters": {
        "width": 380,
        "height": 540,
        "content": "## URL构建逻辑"
      },
      "typeVersion": 1
    },
    {
      "id": "243ecd80-ffec-465b-bf84-c46e0a30fadc",
      "name": "API重定向说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        -220
      ],
      "parameters": {
        "width": 440,
        "height": 540,
        "content": "## Telegram API重定向"
      },
      "typeVersion": 1
    },
    {
      "id": "2e782593-940a-40ad-b7a4-74c69834a28b",
      "name": "工作流概览",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        360
      ],
      "parameters": {
        "width": 1360,
        "height": 300,
        "content": "## 🤖 Telegram机器人Webhook配置工具"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ca3fa150-2a99-416d-a47f-0923c3054bb4",
  "connections": {
    "Build Telegram API URL": {
      "main": [
        [
          {
            "node": "Redirect to Telegram API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Configuration Form": {
      "main": [
        [
          {
            "node": "Build Telegram API URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 构建模块

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量7
分类1
节点类型4
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流