🤖 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)可能需要您自行付费。
相关工作流推荐
将n8n标签转换为文件夹并移动工作流
将n8n标签转换为文件夹并移动工作流
If
N8n
Set
+10
40 节点Imperol
构建模块
随机字符串生成器
通过交互式表单生成可自定义的随机字符串
Set
Form
Html
+4
8 节点Ger Longstacks
工程
🔐 双重确认邮件验证系统(使用Google Sheets)
🔐 使用Google Sheets的双重确认邮件验证系统
If
Code
Form
+5
24 节点Un tal Camilo Medina
营销
带动态下拉字段的表单
带动态下拉字段的表单
N8n
Set
Code
+5
16 节点Obsidi8n
构建模块
博客研究智能体
使用 GPT、Tavily 搜索和 Google Sheets 生成深度研究 Markdown 报告
Set
Code
Merge
+10
36 节点Archit Jain
构建模块
AI DJ:基于Linkup和GPT4的文本转Spotify歌单生成器
AI DJ:基于Linkup和GPT4的文本转Spotify歌单生成器
Set
Form
Spotify
+7
17 节点Guillaume Duvernay
内容创作