8
n8n 한국어amn8n.com

TelePilot를 사용한 자동 Telegram 사용자 봇 세션 모니터링 및 복구

고급

이것은DevOps분야의자동화 워크플로우로, 16개의 노드를 포함합니다.주로 Set, Filter, Telegram, ScheduleTrigger, ChatTrigger 등의 노드를 사용하며. 사용TelePilot의자동화Telegram用户봇会话모니터링与恢复

사전 요구사항
  • Telegram Bot Token

카테고리

워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "meta": {
    "instanceId": "b01651a347630e90a4bc33ea9cf043eb9b1a7593a0e49cd5542c1c0d34c726d2",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "2f3ae9e1-74a8-471c-b5e9-5248b30df34a",
      "name": "채팅 메시지 수신 시",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        0,
        640
      ],
      "webhookId": "e03aaa29-25f0-41a6-ac38-4530aeea2855",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "cddd4cae-f66e-46df-b47b-03d70e64dd58",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        400
      ],
      "parameters": {
        "width": 740,
        "height": 440,
        "content": "# Supported Commands\nFollowing commands can be used in Chat:\n\n/start - start login via Phone Number and code (MFA is also supported if set)\n/stop - terminates current ClientSession for this Credential\n/clear - deletes local tdlib database, new login is required\n/cred - shows which Telegram Credential is used in this ChatTrigger (name + apiId, apiHash, phoneNumber)\n/stat - print all open Telegram sessions"
      },
      "typeVersion": 1
    },
    {
      "id": "80545bcf-d638-4d62-98da-1c2417ae0a08",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        224
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c4de86cc-899a-46cd-827f-24310f5f6431",
      "name": "Stop auth",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        1120,
        368
      ],
      "parameters": {
        "resource": "login"
      },
      "credentials": {
        "telePilotApi": {
          "id": "3ByPfxvvIjIyEX9F",
          "name": "Lesnikov Telegram account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "69e92f40-e2bd-42c2-917f-dfff2ecff35e",
      "name": "Start auth",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        1120,
        592
      ],
      "parameters": {
        "resource": "login"
      },
      "credentials": {
        "telePilotApi": {
          "id": "3ByPfxvvIjIyEX9F",
          "name": "Lesnikov Telegram account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "f3ff30f1-636b-4f77-b4df-de64149000dd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        304
      ],
      "parameters": {
        "width": 480,
        "height": 692,
        "content": "# Automatic Reconnect"
      },
      "typeVersion": 1
    },
    {
      "id": "06fb2111-2a65-41cd-bf0f-3b9eb63f802b",
      "name": "Manual control",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        224,
        640
      ],
      "parameters": {
        "resource": "login"
      },
      "credentials": {
        "telePilotApi": {
          "id": "3ByPfxvvIjIyEX9F",
          "name": "Lesnikov Telegram account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8c35adce-7dc6-4559-80e8-bde6de9ae6d3",
      "name": "Automatic control",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        448,
        224
      ],
      "parameters": {
        "resource": "login"
      },
      "credentials": {
        "telePilotApi": {
          "id": "3ByPfxvvIjIyEX9F",
          "name": "Lesnikov Telegram account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5adebdd8-eed4-4942-9f46-57ff3cebff7c",
      "name": "Get Session Status",
      "type": "n8n-nodes-base.set",
      "position": [
        224,
        224
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "72c4f4ca-ff60-45ac-9c26-d8e6661f541a",
              "name": "sessionId",
              "type": "string",
              "value": "67a853b868cd4f06a0113163ec8b2458"
            },
            {
              "id": "23010324-6358-4aec-a8eb-fa7a174123f1",
              "name": "action",
              "type": "string",
              "value": "sendMessage"
            },
            {
              "id": "a35ef9f8-1dfc-4e34-a347-de6542358aad",
              "name": "chatInput",
              "type": "string",
              "value": "/stat"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "c8dd0ee1-8877-4e59-8c8a-5d2ff8b1c2f5",
      "name": "Stop Session",
      "type": "n8n-nodes-base.set",
      "position": [
        912,
        368
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "72c4f4ca-ff60-45ac-9c26-d8e6661f541a",
              "name": "sessionId",
              "type": "string",
              "value": "67a853b868cd4f06a0113163ec8b2458"
            },
            {
              "id": "23010324-6358-4aec-a8eb-fa7a174123f1",
              "name": "action",
              "type": "string",
              "value": "sendMessage"
            },
            {
              "id": "a35ef9f8-1dfc-4e34-a347-de6542358aad",
              "name": "chatInput",
              "type": "string",
              "value": "/stop"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "ae5565f7-cddb-41fb-be03-b2980c80688d",
      "name": "Start Session",
      "type": "n8n-nodes-base.set",
      "position": [
        912,
        592
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "72c4f4ca-ff60-45ac-9c26-d8e6661f541a",
              "name": "sessionId",
              "type": "string",
              "value": "67a853b868cd4f06a0113163ec8b2458"
            },
            {
              "id": "23010324-6358-4aec-a8eb-fa7a174123f1",
              "name": "action",
              "type": "string",
              "value": "sendMessage"
            },
            {
              "id": "a35ef9f8-1dfc-4e34-a347-de6542358aad",
              "name": "chatInput",
              "type": "string",
              "value": "/start"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "0f65ad5e-7ed7-4376-855e-829c34c811ef",
      "name": "Pass on Closed Status",
      "type": "n8n-nodes-base.filter",
      "position": [
        672,
        224
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "08f33e60-eafc-4270-94ab-5f26549ea4d3",
              "operator": {
                "type": "string",
                "operation": "notEquals"
              },
              "leftValue": "={{ $json[0].authState }}",
              "rightValue": "authorizationStateReady"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "0b78e5c0-ca44-4e7c-93ff-79d285115f32",
      "name": "Send Closed Status message",
      "type": "n8n-nodes-base.telegram",
      "disabled": true,
      "position": [
        880,
        128
      ],
      "webhookId": "231c216e-646c-45e3-a3ca-145d48ca7e8d",
      "parameters": {
        "text": "=❌ Lesnikov UserBot Error:\n{{ $json.toJsonString() }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "eA9CvzGGscu3q5LF",
          "name": "LesnikovCoreBot"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c512d22a-4082-4e80-9142-4dee8401a9fa",
      "name": "Check Session Connection",
      "type": "n8n-nodes-base.filter",
      "position": [
        912,
        800
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "08f33e60-eafc-4270-94ab-5f26549ea4d3",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json[0].authState }}",
              "rightValue": "authorizationStateReady"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "194bdbc5-d65f-44e9-bd82-966377e72b9d",
      "name": "Send Session Connection message",
      "type": "n8n-nodes-base.telegram",
      "disabled": true,
      "position": [
        1120,
        800
      ],
      "webhookId": "f61ba988-2a26-4d07-87b6-9ef9e9eab2bc",
      "parameters": {
        "text": "=✅ Lesnikov UserBot Info:\n{{ $json.toJsonString() }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "eA9CvzGGscu3q5LF",
          "name": "LesnikovCoreBot"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "1a3d8082-4ce8-4346-9c18-91c7cf56e11b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        160
      ],
      "parameters": {
        "width": 880,
        "height": 224,
        "content": "# Automatic Session Check"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "c4de86cc-899a-46cd-827f-24310f5f6431": {
      "main": [
        [
          {
            "node": "ae5565f7-cddb-41fb-be03-b2980c80688d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "69e92f40-e2bd-42c2-917f-dfff2ecff35e": {
      "main": [
        [
          {
            "node": "c512d22a-4082-4e80-9142-4dee8401a9fa",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c8dd0ee1-8877-4e59-8c8a-5d2ff8b1c2f5": {
      "main": [
        [
          {
            "node": "c4de86cc-899a-46cd-827f-24310f5f6431",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ae5565f7-cddb-41fb-be03-b2980c80688d": {
      "main": [
        [
          {
            "node": "69e92f40-e2bd-42c2-917f-dfff2ecff35e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "06fb2111-2a65-41cd-bf0f-3b9eb63f802b": {
      "main": [
        []
      ]
    },
    "80545bcf-d638-4d62-98da-1c2417ae0a08": {
      "main": [
        [
          {
            "node": "5adebdd8-eed4-4942-9f46-57ff3cebff7c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8c35adce-7dc6-4559-80e8-bde6de9ae6d3": {
      "main": [
        [
          {
            "node": "0f65ad5e-7ed7-4376-855e-829c34c811ef",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5adebdd8-eed4-4942-9f46-57ff3cebff7c": {
      "main": [
        [
          {
            "node": "8c35adce-7dc6-4559-80e8-bde6de9ae6d3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0f65ad5e-7ed7-4376-855e-829c34c811ef": {
      "main": [
        [
          {
            "node": "0b78e5c0-ca44-4e7c-93ff-79d285115f32",
            "type": "main",
            "index": 0
          },
          {
            "node": "c8dd0ee1-8877-4e59-8c8a-5d2ff8b1c2f5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c512d22a-4082-4e80-9142-4dee8401a9fa": {
      "main": [
        [
          {
            "node": "194bdbc5-d65f-44e9-bd82-966377e72b9d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2f3ae9e1-74a8-471c-b5e9-5248b30df34a": {
      "main": [
        [
          {
            "node": "06fb2111-2a65-41cd-bf0f-3b9eb63f802b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

고급 - 데브옵스

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
고급
노드 수16
카테고리1
노드 유형7
난이도 설명

고급 사용자를 위한 16+개 노드의 복잡한 워크플로우

저자
IvanCore

IvanCore

@ivancore

Hi, I’m a botmaker and automation enthusiast, specializing in creating efficient systems and solutions to streamline processes. My expertise lies in developing bots and automation tools that save ⏱️ time, enhance 📈 productivity, and simplify 🔄 complex tasks. If you’d like to learn more or connect with me, feel free to reach out through the link below: Looking forward to collaborating! 🤝

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34