From 3ddfb4c4cbd116d6913fc0eb8bc13a0e9b318443 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=9C=D0=BE=D0=B8=D1=81=D0=B5=D0=B5=D0=B2=20=D0=9D=D0=B8?=
 =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9=20=D0=94=D0=B5=D0=BD=D0=B8=D1=81?=
 =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D1=87?= <ndmoiseev@edu.hse.ru>
Date: Thu, 23 May 2024 14:55:03 +0000
Subject: [PATCH] Delete telegram_bot.json

---
 telegram_bot.json | 5925 ---------------------------------------------
 1 file changed, 5925 deletions(-)
 delete mode 100644 telegram_bot.json

diff --git a/telegram_bot.json b/telegram_bot.json
deleted file mode 100644
index c148fe2..0000000
--- a/telegram_bot.json
+++ /dev/null
@@ -1,5925 +0,0 @@
-{
-  "name": "New Bot copy",
-  "nodes": [
-    {
-      "parameters": {
-        "updates": [
-          "message",
-          "callback_query"
-        ],
-        "timeout": 1
-      },
-      "id": "a8d081cf-4b8a-46d2-96e8-4344e7f1f70f",
-      "name": "Telegram Trigger",
-      "type": "CUSTOM.telegramPollingTrigger",
-      "typeVersion": 1,
-      "position": [
-        -180,
-        440
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "id",
-              "value": "={{ $json.message.from.id }}"
-            }
-          ]
-        },
-        "options": {
-          "outputColumns": [
-            "*"
-          ]
-        }
-      },
-      "id": "569517b1-fb1f-4e6d-9d52-820d631999e8",
-      "name": "Postgres2",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        2840,
-        340
-      ],
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "return [{json: {empty: items.length == 1 && Object.keys(items[0].json).length == 0}}];"
-      },
-      "id": "cec3046e-2f57-4213-9fdb-47702fe43587",
-      "name": "Code1",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        3020,
-        200
-      ]
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "dba02ce4-5893-40e6-b51f-30f7675a7acf",
-              "leftValue": "={{ $json.empty }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "1277d652-2661-4ce4-9963-23d225dddf4c",
-      "name": "If2",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        3400,
-        200
-      ]
-    },
-    {
-      "parameters": {
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "state": 1,
-            "id": "={{ $('If').item.json.message.from.id }}"
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {
-          "outputColumns": [
-            "state",
-            "id"
-          ]
-        }
-      },
-      "id": "7aac5154-68b1-48a6-94e2-2e3615f17941",
-      "name": "Postgres3",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        4280,
-        180
-      ],
-      "alwaysOutputData": false,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "mode": "combine",
-        "combinationMode": "mergeByPosition",
-        "options": {}
-      },
-      "id": "28a9bda7-3ea8-4e9e-a8be-40e836d9e1d7",
-      "name": "Merge",
-      "type": "n8n-nodes-base.merge",
-      "typeVersion": 2.1,
-      "position": [
-        4880,
-        340
-      ],
-      "alwaysOutputData": true
-    },
-    {
-      "parameters": {
-        "jsCode": "for (let index = 0; index < items.length; index++) {\n  if (Object.keys(items[index]['json']).length !== 0) {\n    return [{json: {state: items[index]['json']['state'], id: items[index]['json']['id']}}];\n  }\n}\n"
-      },
-      "id": "a0c062b4-54b9-45f5-ad1f-4683b84d4ab2",
-      "name": "Code2",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        5080,
-        340
-      ],
-      "alwaysOutputData": true
-    },
-    {
-      "parameters": {
-        "mode": "combine",
-        "combinationMode": "mergeByPosition",
-        "options": {}
-      },
-      "id": "6aa6f6a1-5332-4375-8648-5e8c9bb67ea6",
-      "name": "Merge1",
-      "type": "n8n-nodes-base.merge",
-      "typeVersion": 2.1,
-      "position": [
-        5260,
-        460
-      ]
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "e2839a3a-4c9c-4f7b-ac27-20bea5027583",
-              "leftValue": "={{ $json.message.chat.type }}",
-              "rightValue": "private",
-              "operator": {
-                "type": "string",
-                "operation": "equals",
-                "name": "filter.operator.equals"
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "b2152730-0470-47ba-afd7-b9db030667f7",
-      "name": "If",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        1180,
-        460
-      ]
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "48041c05-feff-4f78-b773-68cf372494d3",
-              "leftValue": "={{ $json.message.text }}",
-              "rightValue": "=/start",
-              "operator": {
-                "type": "string",
-                "operation": "startsWith"
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "0b672021-d1db-4347-81d1-b5b3c7f4bc2a",
-      "name": "If1",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        6640,
-        200
-      ]
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $json.message.from.id }}",
-        "text": "Чтобы начать введите /start",
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "9ad53b10-f8c9-41fc-b00d-63490e770d8d",
-      "name": "Telegram",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        7420,
-        240
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "options": {}
-      },
-      "id": "b6c92949-1f59-45be-b12f-cb38dd296064",
-      "name": "Loop Over Items",
-      "type": "n8n-nodes-base.splitInBatches",
-      "typeVersion": 3,
-      "position": [
-        40,
-        440
-      ]
-    },
-    {
-      "parameters": {},
-      "id": "b0766ab9-3e7c-4ea3-8048-aac95a444dbf",
-      "name": "Replace Me",
-      "type": "n8n-nodes-base.noOp",
-      "typeVersion": 1,
-      "position": [
-        9700,
-        3940
-      ]
-    },
-    {
-      "parameters": {},
-      "id": "061f1a2e-4bb5-4766-aa34-5eff5fad307c",
-      "name": "No Operation, do nothing",
-      "type": "n8n-nodes-base.noOp",
-      "typeVersion": 1,
-      "position": [
-        1100,
-        240
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "users",
-          "mode": "list",
-          "cachedResultName": "users"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "tg_id",
-              "value": "={{ $json.message.from.id }}"
-            }
-          ]
-        },
-        "options": {
-          "outputColumns": [
-            "*"
-          ]
-        }
-      },
-      "id": "577198a3-2b4b-404a-93ad-3608367b2533",
-      "name": "Postgres",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        7000,
-        0
-      ],
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "return [{json: {empty: items.length == 1 && Object.keys(items[0].json).length == 0}}];"
-      },
-      "id": "7aebb36c-a315-439c-92e1-4d1752a790ba",
-      "name": "Code",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        7220,
-        0
-      ]
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $('If1').item.json.message.from.id }}",
-        "text": "=Вы ещё не вошли! Ваш id - `{{ $('If1').item.json.message.from.id }}`\nВведите его:\nhttps://chat.miem.hse.ru/#narrow/dm/3101-Chat-gate-bot\n(Для начала работы необходимо ввести !start) ",
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "bfde933a-ae73-45dd-9d48-6ba0041dd559",
-      "name": "Telegram1",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        7700,
-        -20
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "dba02ce4-5893-40e6-b51f-30f7675a7acf",
-              "leftValue": "={{ $json.empty }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "d17cc036-f75a-4953-96ea-b32adeb1c192",
-      "name": "If3",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        7440,
-        0
-      ]
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $json.message.from.id }}",
-        "text": "Окей, теперь добавьте меня в требуемый чат и начните синхронизацию форвардинга с помощью команды \n/sync",
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "72eac16c-504f-4ec5-ab8a-d84a2c5b7779",
-      "name": "Telegram2",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        7740,
-        400
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "users",
-          "mode": "list",
-          "cachedResultName": "users"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "tg_id",
-              "value": "={{ $json.message.from.id }}"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "786f6853-9e7b-4fb9-b486-c9a6058da862",
-      "name": "Postgres1",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        2800,
-        1400
-      ],
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "return [{json: {empty: items.length == 1 && Object.keys(items[0].json).length == 0}}];"
-      },
-      "id": "09a1030b-19d9-451b-82a6-2ac3b5606364",
-      "name": "Code3",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        3020,
-        1400
-      ]
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "dba02ce4-5893-40e6-b51f-30f7675a7acf",
-              "leftValue": "={{ $json.empty }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "9155adaf-d074-4566-b1fb-56b06acd80e1",
-      "name": "If4",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        3420,
-        1400
-      ]
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $('If').item.json.message.chat.id }}",
-        "text": "Вы ещё не зарегестрированы в системе! Перейдите в личные сообщения бота и пройдите процедуру регистрации!",
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "148cc516-82ae-4322-8503-41805bdd4628",
-      "name": "Telegram3",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        4340,
-        1380
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
-        "text": "Команду /start можно использовать только в личных сообщениях с ботом!",
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "4eb5de4b-d5a3-440c-bdb3-eb06a5b7e974",
-      "name": "Telegram4",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        2840,
-        1220
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {},
-      "id": "aaf5dbfd-92a0-4268-9ff0-dda1fbb86314",
-      "name": "No Operation, do nothing1",
-      "type": "n8n-nodes-base.noOp",
-      "typeVersion": 1,
-      "position": [
-        8600,
-        1400
-      ]
-    },
-    {
-      "parameters": {},
-      "id": "1ff1eda5-a6b6-4264-8025-7a6eda696c6c",
-      "name": "No Operation, do nothing2",
-      "type": "n8n-nodes-base.noOp",
-      "typeVersion": 1,
-      "position": [
-        8640,
-        340
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "users",
-          "mode": "list",
-          "cachedResultName": "users"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "tg_id",
-              "value": "={{ $json.message.from.id }}"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "c4d6df1e-e324-488c-b6ee-a061a4a30586",
-      "name": "Postgres6",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        1720,
-        1860
-      ],
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "return [{json: {empty: items.length == 1 && Object.keys(items[0].json).length == 0}}];"
-      },
-      "id": "fb28e396-a23e-4e23-93f3-125a8bde50d8",
-      "name": "Code5",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        2340,
-        1860
-      ]
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "dba02ce4-5893-40e6-b51f-30f7675a7acf",
-              "leftValue": "={{ $json.empty }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "false",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "3b327ea1-9ce6-4f4c-ae1e-a2f0ae9f5d1a",
-      "name": "If5",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        2740,
-        1860
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "id",
-              "value": "={{ $('Postgres6').item.json.tg_id }}"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "bbcd8f79-b013-42cd-a8b5-d91872f8df41",
-      "name": "Postgres7",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        3120,
-        1760
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "fd48e5b5-495d-49e0-8b05-240b28323d93",
-              "leftValue": "={{ $json.msg }}",
-              "rightValue": "\\d+",
-              "operator": {
-                "type": "string",
-                "operation": "regex"
-              }
-            },
-            {
-              "id": "467e9159-c39a-4d59-9061-d68ae5a10d77",
-              "leftValue": "={{ Number($json.msg) - 1 < $json.channels.length}}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            },
-            {
-              "id": "83073409-97af-483c-8adf-d2f0cb86c0aa",
-              "leftValue": "={{ Number($json.msg) - 1 >= 0 }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "ada64112-d5e3-40ca-a5c5-ff4b0ba4dee9",
-      "name": "If6",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        4960,
-        1840
-      ],
-      "executeOnce": true
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_zulip",
-          "mode": "list",
-          "cachedResultName": "forwarding_zulip"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "id",
-              "value": "={{ $('Postgres6').item.json.zulip_id }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "13ec8dc2-4a00-4e77-aae4-655eb9b6e89d",
-      "name": "Postgres8",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        3900,
-        1660
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "90180abd-fc97-4832-b71d-f5ede4974498",
-              "leftValue": "={{ $json.msg }}",
-              "rightValue": "/cancel",
-              "operator": {
-                "type": "string",
-                "operation": "startsWith"
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "ff801030-6a68-40e7-a411-199ac4500bbc",
-      "name": "If7",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        5340,
-        2120
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "id": "={{ $json.telegram_id }}",
-            "state": 2
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "12c70800-922e-4196-bf4d-ad60842e9a1d",
-      "name": "Postgres9",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        6000,
-        1900
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $('If7').item.json.chat_id }}",
-        "text": "Синхронизация отменена!",
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "b331ceb0-966c-4264-ae84-5366431a3486",
-      "name": "Telegram6",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        6740,
-        1900
-      ],
-      "executeOnce": true,
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $json.chat_id }}",
-        "text": "Неверный ввод! Ведите правильный номер или введите /cancel",
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "1781fef0-a25d-4f42-ad97-5ab1ce021de4",
-      "name": "Telegram7",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        6440,
-        2140
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $json.chat_id }}",
-        "text": "Окей, выберите режим работы",
-        "replyMarkup": "inlineKeyboard",
-        "inlineKeyboard": {
-          "rows": [
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Двухсторонняя пересылка",
-                    "additionalFields": {
-                      "callback_data": "bidirect"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Пересылка в Zulip",
-                    "additionalFields": {
-                      "callback_data": "to"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Пересылка сюда",
-                    "additionalFields": {
-                      "callback_data": "from"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Отмена",
-                    "additionalFields": {
-                      "callback_data": "cancel"
-                    }
-                  }
-                ]
-              }
-            }
-          ]
-        },
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "816e8f6e-6f80-40a0-a4bc-d3b7d94a863d",
-      "name": "Telegram8",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        5300,
-        1780
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "id": "={{ $('If6').item.json.telegram_id }}",
-            "state": 2
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "70b0dcd9-ddef-4973-9089-45df3926bf5c",
-      "name": "Postgres10",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        5480,
-        1780
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "b59677e4-bbe5-4da7-86bc-301c49aa0d2d",
-              "leftValue": "={{ $json.callback_query }}",
-              "rightValue": "",
-              "operator": {
-                "type": "object",
-                "operation": "notExists",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "ca1f3ed0-06e2-4849-8dc5-1d7c24a8cb61",
-      "name": "If8",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        260,
-        480
-      ]
-    },
-    {
-      "parameters": {
-        "resource": "callback",
-        "queryId": "={{ $('If8').item.json.callback_query.id }}",
-        "additionalFields": {}
-      },
-      "id": "d73b119d-2e85-4a68-8029-a8cba384141e",
-      "name": "Telegram10",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        1680,
-        2440
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "editMessageText",
-        "chatId": "={{ $('Loop Over Items').item.json.callback_query.message.chat.id }}",
-        "messageId": "={{ $('Loop Over Items').item.json.callback_query.message.message_id }}",
-        "text": "Отменено",
-        "additionalFields": {}
-      },
-      "id": "f4ac4712-a64a-4698-a6dd-74bcec5fb24d",
-      "name": "Telegram9",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        1820,
-        2760
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "zulip_channel_id": "={{ $('Code7').item.json.channels[Number($('If6').item.json.msg) - 1].json.channel_id }}",
-            "telegram_chat_id": "={{ $('If6').item.json.chat_id }}",
-            "zulip_topic_name": "={{ $('Code7').item.json.channels[Number($('If6').item.json.msg) - 1].json.topic_name }}"
-          },
-          "matchingColumns": [],
-          "schema": [
-            {
-              "id": "zulip_channel_id",
-              "displayName": "zulip_channel_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            },
-            {
-              "id": "zulip_topic_name",
-              "displayName": "zulip_topic_name",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true
-            },
-            {
-              "id": "telegram_chat_id",
-              "displayName": "telegram_chat_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            },
-            {
-              "id": "mode",
-              "displayName": "mode",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "01d12d2f-5800-4be8-b9f2-33b2faa8f226",
-      "name": "Postgres12",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        6420,
-        1740
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $json.callback_query.message.chat.id }}"
-            },
-            {
-              "column": "mode",
-              "condition": "IS NULL"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "zulip_channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "3615a059-2632-4037-bcdd-6b8fa8c3a992",
-      "name": "Postgres11",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        1000,
-        2760
-      ],
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "telegram_chat_id": "={{ $('Postgres11').item.json.telegram_chat_id }}",
-            "zulip_topic_name": "={{ $('Postgres11').item.json.zulip_topic_name }}",
-            "zulip_channel_id": "={{ $('Postgres11').item.json.zulip_channel_id }}",
-            "mode": "={{ $('If8').item.json.callback_query.data }}"
-          },
-          "matchingColumns": [],
-          "schema": [
-            {
-              "id": "zulip_channel_id",
-              "displayName": "zulip_channel_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "zulip_topic_name",
-              "displayName": "zulip_topic_name",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "telegram_chat_id",
-              "displayName": "telegram_chat_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "mode",
-              "displayName": "mode",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "637492d3-690b-46d2-84e5-68b040ea9500",
-      "name": "Postgres13",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        2860,
-        2440
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "editMessageText",
-        "chatId": "={{ $('If8').item.json.callback_query.message.chat.id }}",
-        "messageId": "={{ $('If8').item.json.callback_query.message.message_id }}",
-        "text": "Готово! Режим пересылки установлен!",
-        "additionalFields": {}
-      },
-      "id": "63e9d6e6-51b5-4e51-ac0f-227627f6e4bb",
-      "name": "Telegram11",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        3380,
-        2440
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $('Loop Over Items').item.json.message.chat.id }}"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "33ce2cff-b6f6-4219-a61b-0a44a12c45c8",
-      "name": "Postgres14",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        3880,
-        2320
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "546df217-11d6-444d-bd2f-279ce517a145",
-              "leftValue": "={{ $json.mode }}",
-              "rightValue": "to",
-              "operator": {
-                "type": "string",
-                "operation": "equals",
-                "name": "filter.operator.equals"
-              }
-            },
-            {
-              "id": "a04c361e-b0a9-41ba-954d-4d7492bdfc9a",
-              "leftValue": "={{ $json.mode }}",
-              "rightValue": "bidirect",
-              "operator": {
-                "type": "string",
-                "operation": "equals",
-                "name": "filter.operator.equals"
-              }
-            }
-          ],
-          "combinator": "or"
-        },
-        "options": {}
-      },
-      "id": "a2837225-e3a0-488c-aea0-cdd6b3776fee",
-      "name": "If9",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        4680,
-        2360
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "sendStream",
-        "stream": "={{ $('Postgres14').item.json.zulip_channel_id }}",
-        "topic": "={{ $('Postgres14').item.json.zulip_topic_name }}",
-        "content": "=**Новое сообщение из:** {{ $('Loop Over Items').item.json.message.chat.title }} \n**От:** {{ $('Loop Over Items').item.json.message.from.first_name }} \n**Сообщение:**\n{{ $('Loop Over Items').item.json.message.text }}"
-      },
-      "id": "36afc092-e07b-4498-8c95-193ddc3d9f92",
-      "name": "Zulip",
-      "type": "n8n-nodes-base.zulip",
-      "typeVersion": 1,
-      "position": [
-        5200,
-        2480
-      ],
-      "credentials": {
-        "zulipApi": {
-          "id": "KAqAFt6Sov7UwPl6",
-          "name": "Zulip account 2"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "deleteTable",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "deleteCommand": "delete",
-        "where": {
-          "values": [
-            {
-              "column": "zulip_channel_id",
-              "value": "={{ $('Postgres11').item.json.zulip_channel_id }}"
-            },
-            {
-              "column": "zulip_topic_name",
-              "value": "={{ $('Postgres11').item.json.zulip_topic_name }}"
-            },
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $('Postgres11').item.json.telegram_chat_id }}"
-            },
-            {
-              "column": "mode",
-              "condition": "IS NULL"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "5b462ca7-1d00-40e1-86b0-f1249caa31f0",
-      "name": "Postgres15",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        2340,
-        2440
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "c6e728b2-54d1-4864-b963-799917310a4b",
-              "leftValue": "={{ $json.message.text }}",
-              "rightValue": "/notifications",
-              "operator": {
-                "type": "string",
-                "operation": "notStartsWith"
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "9a8cccf3-2795-4d9a-8555-193d8c9387aa",
-      "name": "If10",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        6580,
-        440
-      ]
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $json.id }}",
-        "text": "Хотите добавить новые  уведомления или изменить имеющиеся?",
-        "replyMarkup": "inlineKeyboard",
-        "inlineKeyboard": {
-          "rows": [
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Добавить",
-                    "additionalFields": {
-                      "callback_data": "add"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Изменить",
-                    "additionalFields": {
-                      "callback_data": "edit"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Отмена",
-                    "additionalFields": {
-                      "callback_data": "cancel"
-                    }
-                  }
-                ]
-              }
-            }
-          ]
-        },
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "0b6856dd-70b0-4b3c-9419-98a38976ea5a",
-      "name": "Telegram12",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        8200,
-        580
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "editMessageText",
-        "chatId": "={{ $json.chat_id }}",
-        "messageId": "={{ $json.message_id }}",
-        "text": "=Вот каналы, доступные для уведомлений:\n\n{{ $json.channels }}\n\nДля выбора – введите номер канала",
-        "additionalFields": {}
-      },
-      "id": "37ac2876-efc8-42f3-bff0-3ca1f78ad69a",
-      "name": "Telegram13",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        3680,
-        2920
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "users",
-          "mode": "list",
-          "cachedResultName": "users"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "tg_id",
-              "value": "={{ $('Loop Over Items').item.json.callback_query.from.id }}"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "d6db2f55-bfd5-4649-95c6-32a8a3cb8a4f",
-      "name": "Postgres16",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        1780,
-        2940
-      ],
-      "alwaysOutputData": false,
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_zulip",
-          "mode": "list",
-          "cachedResultName": "forwarding_zulip"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "id",
-              "value": "={{ $json.zulip_id }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "321d5b9f-2c75-4abb-afb7-71ca425d6129",
-      "name": "Postgres17",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        2420,
-        2940
-      ],
-      "executeOnce": true,
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "resource": "callback",
-        "queryId": "={{ $('Loop Over Items').item.json.callback_query.id }}",
-        "additionalFields": {}
-      },
-      "id": "0bff5bab-5330-49d2-9bf8-a1461ed4304f",
-      "name": "Telegram14",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        1600,
-        2940
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "let alr = $input.all().map((x) => x.json.zulip_channel_id + '_' + x.json.zulip_topic_name);\nlet array = [];\nlet counter = 1;\nfor (const item of $('Postgres17').all()) {\n  if (!alr.includes(item.json.channel_id + '_' + item.json.topic_name)){\n  array.push(counter++ + ' - ' + item.json.channel_name + ' - ' + item.json.topic_name);\n  }\n}\nreturn {json: {\n  user_tg_id: $('Loop Over Items').item.json.callback_query.from.id,\n  chat_id: $('Loop Over Items').item.json.callback_query.message.chat.id,\n  user_id: $input.all()[0].json.id,\n  telegram_id: $('Loop Over Items').item.json.callback_query.message.from.id,\n  channels: array.join('\\n'),\n  message_id: $('Loop Over Items').item.json.callback_query.message.message_id ,\n}};"
-      },
-      "id": "b4822bdb-769f-495e-8234-dc4cfb500b3b",
-      "name": "Code6",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        2920,
-        2940
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "id": "={{ $('Code6').item.json.user_tg_id }}",
-            "state": 4
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "bbba722c-5c0f-404f-94b2-6c6a2f58c1dc",
-      "name": "Postgres18",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        3920,
-        2940
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "fd48e5b5-495d-49e0-8b05-240b28323d93",
-              "leftValue": "={{ $json.msg }}",
-              "rightValue": "\\d+",
-              "operator": {
-                "type": "string",
-                "operation": "regex"
-              }
-            },
-            {
-              "id": "467e9159-c39a-4d59-9061-d68ae5a10d77",
-              "leftValue": "={{ Number($json[\"msg\"]) - 1 < $input.item.json.channels.length}}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            },
-            {
-              "id": "83073409-97af-483c-8adf-d2f0cb86c0aa",
-              "leftValue": "={{ Number($json[\"msg\"]) - 1 >= 0 }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "fb5ba583-5bb3-40b4-9c20-ae10d43f953e",
-      "name": "If11",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        6800,
-        820
-      ],
-      "executeOnce": true
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_zulip",
-          "mode": "list",
-          "cachedResultName": "forwarding_zulip"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "id",
-              "value": "={{ $json.zulip_id }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "57423359-effe-4cbe-8288-1c0a256d4b0d",
-      "name": "Postgres19",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        6180,
-        680
-      ],
-      "executeOnce": true,
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "90180abd-fc97-4832-b71d-f5ede4974498",
-              "leftValue": "={{ $json.msg }}",
-              "rightValue": "/cancel",
-              "operator": {
-                "type": "string",
-                "operation": "startsWith"
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "96c7cd82-a51e-4941-9447-07d472912bd4",
-      "name": "If12",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        6980,
-        1220
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "id": "={{ $json.telegram_id }}",
-            "state": 2
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "28f9bf14-bee2-4ae6-b4b5-67fb8f0062d3",
-      "name": "Postgres20",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        7140,
-        1100
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $('If12').item.json.chat_id }}",
-        "text": "Синхронизация отменена!",
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "8580b1c9-06d9-472e-8da0-e4753cd52622",
-      "name": "Telegram15",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        7300,
-        1140
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $json.chat_id }}",
-        "text": "Неверный ввод! Ведите правильный номер или введите /cancel",
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "b843d2f8-6bae-47b9-81ef-465b7f13409e",
-      "name": "Telegram16",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        7220,
-        1280
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $json.chat_id }}",
-        "text": "Окей, выберите режим работы",
-        "replyMarkup": "inlineKeyboard",
-        "inlineKeyboard": {
-          "rows": [
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Все сообщения",
-                    "additionalFields": {
-                      "callback_data": "from"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Только сообщения с тэгом",
-                    "additionalFields": {
-                      "callback_data": "from_tag"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Отмена",
-                    "additionalFields": {
-                      "callback_data": "cancel"
-                    }
-                  }
-                ]
-              }
-            }
-          ]
-        },
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "736324b1-b3cb-495b-962f-6e4fa9f3b22e",
-      "name": "Telegram17",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        7180,
-        800
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "id": "={{ $('If11').item.json.telegram_id }}",
-            "state": 2
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "c5709dd6-6bbf-4a38-afc4-fe83d6f76768",
-      "name": "Postgres21",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        7520,
-        800
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "zulip_channel_id": "={{ $('If11').item.json.channels[Number($('If11').item.json.msg) - 1].json.channel_id }}",
-            "telegram_chat_id": "={{ $('Code8').item.json.chat_id }}",
-            "zulip_topic_name": "={{ $('If11').item.json.channels[Number($('If11').item.json.msg) - 1].json.topic_name }}"
-          },
-          "matchingColumns": [],
-          "schema": [
-            {
-              "id": "zulip_channel_id",
-              "displayName": "zulip_channel_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            },
-            {
-              "id": "zulip_topic_name",
-              "displayName": "zulip_topic_name",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true
-            },
-            {
-              "id": "telegram_chat_id",
-              "displayName": "telegram_chat_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            },
-            {
-              "id": "mode",
-              "displayName": "mode",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "7d9f2c7b-c2f0-40c8-ae30-a939d8026a93",
-      "name": "Postgres22",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        7820,
-        800
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "users",
-          "mode": "list",
-          "cachedResultName": "users"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "tg_id",
-              "value": "={{ $json.id }}"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "a8421501-31ae-4e99-b33d-c0c25500396d",
-      "name": "Postgres23",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        5780,
-        680
-      ],
-      "executeOnce": true,
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $('If8').item.json.callback_query.message.chat.id }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "zulip_channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "b154e602-b8a4-4046-9396-9416485b0e82",
-      "name": "Postgres24",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        2640,
-        2940
-      ],
-      "executeOnce": true,
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "let alr = $input.all().map((x) => x.json.zulip_channel_id + '_' + x.json.zulip_topic_name);\nlet array = [];\nlet counter = 1;\nfor (const item of $('Postgres8').all()) {\n  if (!alr.includes(item.json.channel_id + '_' + item.json.topic_name)){\n  array.push(item);\n  }\n}\n\nreturn {json: {\n\n  chat_id: $('Loop Over Items').item.json.message.chat.id,\n  telegram_id: $('Loop Over Items').item.json.message.from.id,\n  channels: array,\n  msg: $('Loop Over Items').item.json.message.text\n}};"
-      },
-      "id": "5e6e8ea4-9f76-47a7-b246-4b23e77aaf78",
-      "name": "Code7",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        4560,
-        1840
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $('Loop Over Items').item.json.message.chat.id }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "zulip_channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "a9c2dcaf-d5ba-4e6d-a1f6-55d95c575438",
-      "name": "Postgres25",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        4140,
-        1660
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $('Switch').item.json.message.chat.id }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "zulip_channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "40646c0b-27e0-4212-a781-3ac1753ebb8f",
-      "name": "Postgres26",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        6360,
-        680
-      ],
-      "executeOnce": true,
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "let alr = $input.all().map((x) => x.json.zulip_channel_id + '_' + x.json.zulip_topic_name);\nlet array = [];\nlet counter = 1;\nfor (const item of $('Postgres19').all()) {\n  if (!alr.includes(item.json.channel_id + '_' + item.json.topic_name)){\n  array.push(item);\n  }\n}\n\nreturn {json: {\n\n  chat_id: $('Loop Over Items').item.json.message.chat.id,\n  user_id: $('Postgres23').all()[0].json.zulip_id,\n  telegram_id: $('Loop Over Items').item.json.message.from.id,\n  channels: array,\n  msg: $('Loop Over Items').item.json.message.text\n}};"
-      },
-      "id": "1a942ce8-a911-4969-b58c-1c907d0e10f0",
-      "name": "Code8",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        6520,
-        680
-      ]
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "a3ceea2c-5658-4044-9e28-c507f519a0ba",
-              "leftValue": "={{ typeof $json.channels === \"string\" && ($json.channels.length !== 0)}}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "3c35b914-3f1e-4135-bd92-116e1fc1509b",
-      "name": "If14",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        3140,
-        2940
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "editMessageText",
-        "chatId": "={{ $json.chat_id }}",
-        "messageId": "={{ $json.message_id }}",
-        "text": "Нет доступных каналов!",
-        "additionalFields": {}
-      },
-      "id": "f6c5de46-433a-4be0-9e98-6fcd86662652",
-      "name": "Telegram19",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        3480,
-        3040
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "resource": "callback",
-        "queryId": "={{ $('Loop Over Items').item.json.callback_query.id }}",
-        "additionalFields": {}
-      },
-      "id": "b4ce0a89-6dbf-4298-8e7e-d18586e41e49",
-      "name": "Telegram20",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        1580,
-        3200
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $('Loop Over Items').item.json.callback_query.message.chat.id }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "zulip_channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "b8b7a509-3c6a-423f-86fc-c893cabe8083",
-      "name": "Postgres28",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        1740,
-        3200
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "cbef6739-a907-4d2f-9bc0-f91a8997e7d9",
-              "leftValue": "={{ $('Loop Over Items').item.json.callback_query.message.chat.id }}",
-              "rightValue": 0,
-              "operator": {
-                "type": "number",
-                "operation": "gt"
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "c55501ff-1759-400b-8898-0fde8fc13c9f",
-      "name": "If15",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        2660,
-        3200
-      ]
-    },
-    {
-      "parameters": {
-        "jsCode": "let array = [];\nlet counter = 1;\nfor (const item of $input.all()) {\n  array.push(counter++ + ' - ' + item.json.channel_name + ' - ' + item.json.topic_name);\n}\nreturn {json: {\n  chat_id: $('Loop Over Items').item.json.callback_query.message.chat.id,\n  user_id: $input.all()[0].json.id,\n  telegram_id: $('Loop Over Items').item.json.callback_query.message.from.id,\n  channels: array.join('\\n'),\n  message_id: $('Loop Over Items').item.json.callback_query.message.message_id ,\n}};"
-      },
-      "id": "c389c81b-d07b-4ebf-a977-d7276889f1e2",
-      "name": "Code9",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        2940,
-        3100
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_zulip",
-          "mode": "list",
-          "cachedResultName": "forwarding_zulip"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "channel_id",
-              "value": "={{ $json.zulip_channel_id }}"
-            },
-            {
-              "column": "topic_name",
-              "value": "={{ $json.zulip_topic_name }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "fd01f457-acf9-4a44-aa61-a7c2be36f68a",
-      "name": "Postgres29",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        1900,
-        3200
-      ],
-      "executeOnce": false,
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "editMessageText",
-        "chatId": "={{ $json.chat_id }}",
-        "messageId": "={{ $json.message_id }}",
-        "text": "=Вот ваши настроенные каналы для уведомлений:\n\n{{ $json.channels }}\n\nВыберите один из них, введя его номер",
-        "additionalFields": {}
-      },
-      "id": "fc1bb0ff-4668-4d76-a8b7-e59732c74ebf",
-      "name": "Telegram21",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        3120,
-        3100
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "id": "={{ $('Code9').item.json.chat_id }}",
-            "state": 5
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "deb04fe3-64da-4265-a10c-cee5e7176c84",
-      "name": "Postgres30",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        3300,
-        3140
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $('Loop Over Items').item.json.message.chat.id }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "zulip_channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "e09be6c5-e506-4ad7-a45e-2105c4bf8779",
-      "name": "Postgres31",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        5560,
-        940
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": false,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_zulip",
-          "mode": "list",
-          "cachedResultName": "forwarding_zulip"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "channel_id",
-              "value": "={{ $json.zulip_channel_id }}"
-            },
-            {
-              "column": "topic_name",
-              "value": "={{ $json.zulip_topic_name }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "9c5ceaf3-7d43-48fc-9b8a-0aac5dc23f1e",
-      "name": "Postgres32",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        5720,
-        940
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "578f7462-09b7-4f5e-b853-03ee454c0215",
-              "leftValue": "={{ $('Loop Over Items').item.json.message.text }}",
-              "rightValue": "\\d+",
-              "operator": {
-                "type": "string",
-                "operation": "regex"
-              }
-            },
-            {
-              "id": "6fb5c9d3-f018-483b-b385-e16a5c20c6c7",
-              "leftValue": "={{ Number($('Loop Over Items').item.json.message.text) - 1 < $input.all().length }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            },
-            {
-              "id": "bf391c6e-710f-46af-b2fb-97e7e61ff27e",
-              "leftValue": "={{ Number($('Loop Over Items').item.json.message.text) - 1 >= 0 }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "4870433d-6930-42a5-adc1-a5b2a65335bb",
-      "name": "If16",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        5880,
-        940
-      ],
-      "executeOnce": true
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $('Loop Over Items').item.json.message.chat.id }}",
-        "text": "Выберите настройку",
-        "replyMarkup": "inlineKeyboard",
-        "inlineKeyboard": {
-          "rows": [
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Все сообщения",
-                    "additionalFields": {
-                      "callback_data": "from"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Сообщения с тегом",
-                    "additionalFields": {
-                      "callback_data": "from_tag"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Удалить",
-                    "additionalFields": {
-                      "callback_data": "delete"
-                    }
-                  }
-                ]
-              }
-            }
-          ]
-        },
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "97e94269-ea89-4f2b-bc74-d031c740b88c",
-      "name": "Telegram22",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        6140,
-        860
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "telegram_chat_id": "={{ $json.result.chat.id }}",
-            "zulip_topic_name": "={{$('Postgres32').all()[Number($('Loop Over Items').item.json.message.text) - 1].json.topic_name}}",
-            "zulip_channel_id": "={{$('Postgres32').all()[Number($('Loop Over Items').item.json.message.text) - 1].json.channel_id}}",
-            "mode": "={{ null }}"
-          },
-          "matchingColumns": [
-            "zulip_channel_id",
-            "zulip_topic_name",
-            "telegram_chat_id"
-          ],
-          "schema": [
-            {
-              "id": "zulip_channel_id",
-              "displayName": "zulip_channel_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "zulip_topic_name",
-              "displayName": "zulip_topic_name",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "telegram_chat_id",
-              "displayName": "telegram_chat_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "mode",
-              "displayName": "mode",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "8ae2b675-75a3-43a9-8a88-f1f95bc1ef0a",
-      "name": "Postgres33",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        6360,
-        860
-      ],
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "id": "={{ $('Loop Over Items').item.json.message.from.id }}",
-            "state": 2
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "5558d217-b7df-484c-a908-4e9a38fc2aea",
-      "name": "Postgres34",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        6580,
-        920
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "resource": "callback",
-        "queryId": "={{ $('Loop Over Items').item.json.callback_query.id }}",
-        "additionalFields": {}
-      },
-      "id": "b5db6274-ee43-4301-a5ac-0ecb29b46c30",
-      "name": "Telegram23",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        1560,
-        3760
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "deleteTable",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "deleteCommand": "delete",
-        "where": {
-          "values": [
-            {
-              "column": "zulip_channel_id",
-              "value": "={{ $('Postgres11').item.json.zulip_channel_id }}"
-            },
-            {
-              "column": "zulip_topic_name",
-              "value": "={{ $('Postgres11').item.json.zulip_topic_name }}"
-            },
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $('Postgres11').item.json.telegram_chat_id }}"
-            },
-            {
-              "column": "mode",
-              "condition": "IS NULL"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "66038844-c217-4e19-94bd-6c4afd1f032b",
-      "name": "Postgres35",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        1780,
-        3760
-      ],
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "editMessageText",
-        "chatId": "={{ $('If8').item.json.callback_query.message.chat.id }}",
-        "messageId": "={{ $('If8').item.json.callback_query.message.message_id }}",
-        "text": "Удалено!",
-        "additionalFields": {}
-      },
-      "id": "b5edaca1-544a-4ef6-a86e-a7294b5f6cae",
-      "name": "Telegram24",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        2440,
-        3760
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "return {json: {\n  id: $input.all()[0].json.id,\n  channel_name: $input.all()[0].json.channel_name,\n  channel_id: $input.all()[0].json.channel_id,\n  topic_name: $input.all()[0].json.topic_name,\n  msg: $('Loop Over Items').item.json.message.text,\n  chat_id: $('Loop Over Items').item.json.message.chat.id,\n  telegram_id: $('Loop Over Items').item.json.message.from.id\n}};"
-      },
-      "id": "86a64977-a672-4efe-8962-e9ce73096767",
-      "name": "Code10",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        6100,
-        1040
-      ]
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $('If').item.json.message.chat.id }}",
-        "text": "Хотите добавить новые или изменить текущие?",
-        "replyMarkup": "inlineKeyboard",
-        "inlineKeyboard": {
-          "rows": [
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Добавить",
-                    "additionalFields": {
-                      "callback_data": "add"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Изменить",
-                    "additionalFields": {
-                      "callback_data": "edit"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Отмена",
-                    "additionalFields": {
-                      "callback_data": "cancel"
-                    }
-                  }
-                ]
-              }
-            }
-          ]
-        },
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "20486e02-2000-4eff-b0c2-d8e18226a17a",
-      "name": "Telegram25",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        3640,
-        1500
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "let array = [];\nlet counter = 1;\nfor (const item of $input.all()) {\n  array.push(counter++ + ' - ' + item.json.channel_name + ' - ' + item.json.topic_name);\n}\nreturn {json: {\n    user_tg_id: $('Loop Over Items').item.json.callback_query.from.id,\n  chat_id: $('Loop Over Items').item.json.callback_query.message.chat.id,\n  user_id: $input.all()[0].json.id,\n  telegram_id: $('Loop Over Items').item.json.callback_query.message.from.id,\n  channels: array.join('\\n'),\n  message_id: $('Loop Over Items').item.json.callback_query.message.message_id ,\n}};"
-      },
-      "id": "d2ed94d6-5c30-4534-a52d-06df22f7b996",
-      "name": "Code11",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        2940,
-        3260
-      ],
-      "executeOnce": false
-    },
-    {
-      "parameters": {
-        "operation": "editMessageText",
-        "chatId": "={{ $json.chat_id }}",
-        "messageId": "={{ $json.message_id }}",
-        "text": "=Вот ваши настроенные каналы для пересылки:  \n\n{{ $json.channels }}  \n\nВыберите один из них, введя его номер",
-        "additionalFields": {}
-      },
-      "id": "4d94cf39-3f0f-44e7-ba52-cd6bab9aee60",
-      "name": "Telegram5",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        3100,
-        3260
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "rules": {
-          "values": [
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "leftValue": "={{ $('Telegram Trigger').item.json.message.text }}",
-                    "rightValue": "/start",
-                    "operator": {
-                      "type": "string",
-                      "operation": "startsWith"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "a7bff95a-e530-402d-ace2-a94ac947d951",
-                    "leftValue": "={{ $('Telegram Trigger').item.json.message.text }}",
-                    "rightValue": "/sync",
-                    "operator": {
-                      "type": "string",
-                      "operation": "startsWith"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            }
-          ]
-        },
-        "options": {
-          "fallbackOutput": "extra"
-        }
-      },
-      "id": "41c57ae2-1834-413e-99bd-15be61b7e4c2",
-      "name": "Switch1",
-      "type": "n8n-nodes-base.switch",
-      "typeVersion": 3,
-      "position": [
-        1580,
-        1400
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "state": 5,
-            "id": "={{ $('Code11').item.json.user_tg_id }}"
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "16836766-3231-4ddc-88a9-f5a5fa6507c5",
-      "name": "Postgres4",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        3440,
-        3280
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "rules": {
-          "values": [
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "leftValue": "={{ $json.state }}",
-                    "rightValue": 4,
-                    "operator": {
-                      "type": "number",
-                      "operation": "equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "b15bf70d-6752-4137-b4c3-bd62e90389cd",
-                    "leftValue": "={{ $json.state }}",
-                    "rightValue": 5,
-                    "operator": {
-                      "type": "number",
-                      "operation": "equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            }
-          ]
-        },
-        "options": {
-          "fallbackOutput": "extra"
-        }
-      },
-      "id": "b75f44f4-56b5-4e6f-ae78-b0997e3b6bc8",
-      "name": "Switch2",
-      "type": "n8n-nodes-base.switch",
-      "typeVersion": 3,
-      "position": [
-        3340,
-        1760
-      ]
-    },
-    {
-      "parameters": {
-        "rules": {
-          "values": [
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "leftValue": "={{ $json.state }}",
-                    "rightValue": 1,
-                    "operator": {
-                      "type": "number",
-                      "operation": "equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "2104b238-3c82-4de7-96e3-ef9f820b472c",
-                    "leftValue": "={{ $json.state }}",
-                    "rightValue": 2,
-                    "operator": {
-                      "type": "number",
-                      "operation": "equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "2d8ee85a-1555-4bf4-bf86-ec6cc7ebbbf3",
-                    "leftValue": "={{ $json.state }}",
-                    "rightValue": 4,
-                    "operator": {
-                      "type": "number",
-                      "operation": "equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "8e2b3289-5759-4d01-a838-5e2ca24fdc3e",
-                    "leftValue": "={{ $json.state }}",
-                    "rightValue": 5,
-                    "operator": {
-                      "type": "number",
-                      "operation": "equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "00b38988-c372-44bf-8327-ba8aced7ed97",
-      "name": "Switch",
-      "type": "n8n-nodes-base.switch",
-      "typeVersion": 3,
-      "position": [
-        5420,
-        460
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $('Loop Over Items').item.json.message.chat.id }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "zulip_channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "60b44f6a-72e1-4582-9a08-080c5d450b60",
-      "name": "Postgres36",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        3880,
-        2060
-      ],
-      "alwaysOutputData": true,
-      "executeOnce": false,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "select",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_zulip",
-          "mode": "list",
-          "cachedResultName": "forwarding_zulip"
-        },
-        "where": {
-          "values": [
-            {
-              "column": "channel_id",
-              "value": "={{ $json.zulip_channel_id }}"
-            },
-            {
-              "column": "topic_name",
-              "value": "={{ $json.zulip_topic_name }}"
-            }
-          ]
-        },
-        "sort": {
-          "values": [
-            {
-              "column": "channel_id"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "4a39840f-1acd-4e91-a185-a634e9d24e21",
-      "name": "Postgres37",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        4040,
-        2060
-      ],
-      "executeOnce": false,
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "578f7462-09b7-4f5e-b853-03ee454c0215",
-              "leftValue": "={{ $('Loop Over Items').item.json.message.text }}",
-              "rightValue": "\\d+",
-              "operator": {
-                "type": "string",
-                "operation": "regex"
-              }
-            },
-            {
-              "id": "6fb5c9d3-f018-483b-b385-e16a5c20c6c7",
-              "leftValue": "={{ Number($('Loop Over Items').item.json.message.text) - 1 < $input.all().length }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            },
-            {
-              "id": "bf391c6e-710f-46af-b2fb-97e7e61ff27e",
-              "leftValue": "={{ Number($('Loop Over Items').item.json.message.text) - 1 >= 0 }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "true",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "8601e0a2-dbea-4dce-a20c-82414089556b",
-      "name": "If17",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        4200,
-        2060
-      ],
-      "executeOnce": true
-    },
-    {
-      "parameters": {
-        "chatId": "={{ $('Loop Over Items').item.json.message.chat.id }}",
-        "text": "Выберите настройку",
-        "replyMarkup": "inlineKeyboard",
-        "inlineKeyboard": {
-          "rows": [
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Все сообщения",
-                    "additionalFields": {
-                      "callback_data": "bidirect"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Пересылка сюда",
-                    "additionalFields": {
-                      "callback_data": "from"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Пересылка в зулип",
-                    "additionalFields": {
-                      "callback_data": "to"
-                    }
-                  }
-                ]
-              }
-            },
-            {
-              "row": {
-                "buttons": [
-                  {
-                    "text": "Удалить",
-                    "additionalFields": {
-                      "callback_data": "delete"
-                    }
-                  }
-                ]
-              }
-            }
-          ]
-        },
-        "additionalFields": {
-          "appendAttribution": false
-        }
-      },
-      "id": "9b7a7e6a-fb85-4403-8419-e68c0560f02b",
-      "name": "Telegram26",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        4460,
-        1980
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "telegram_chat_id": "={{ $json.result.chat.id }}",
-            "zulip_topic_name": "={{$('Postgres37').all()[Number($('Loop Over Items').item.json.message.text) - 1].json.topic_name}}",
-            "zulip_channel_id": "={{$('Postgres37').all()[Number($('Loop Over Items').item.json.message.text) - 1].json.channel_id}}",
-            "mode": "={{ null }}"
-          },
-          "matchingColumns": [
-            "zulip_channel_id",
-            "zulip_topic_name",
-            "telegram_chat_id"
-          ],
-          "schema": [
-            {
-              "id": "zulip_channel_id",
-              "displayName": "zulip_channel_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "zulip_topic_name",
-              "displayName": "zulip_topic_name",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "telegram_chat_id",
-              "displayName": "telegram_chat_id",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "mode",
-              "displayName": "mode",
-              "required": false,
-              "defaultMatch": false,
-              "display": true,
-              "type": "string",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "0d7efa53-654a-481a-a4b5-1dbb53668422",
-      "name": "Postgres38",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        4680,
-        1980
-      ],
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "id": "={{ $('Loop Over Items').item.json.message.from.id }}",
-            "state": 2
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "bce7e750-9be4-4843-a8e8-ab0b35f81809",
-      "name": "Postgres39",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        4860,
-        1980
-      ],
-      "executeOnce": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "jsCode": "return {json: {\n  id: $input.all()[0].json.id,\n  channel_name: $input.all()[0].json.channel_name,\n  channel_id: $input.all()[0].json.channel_id,\n  topic_name: $input.all()[0].json.topic_name,\n  msg: $('Loop Over Items').item.json.message.text,\n  chat_id: $('Loop Over Items').item.json.message.chat.id,\n  telegram_id: $('Loop Over Items').item.json.message.from.id\n}};"
-      },
-      "id": "81991b92-89a7-41d3-82fc-24d9cbecb995",
-      "name": "Code12",
-      "type": "n8n-nodes-base.code",
-      "typeVersion": 2,
-      "position": [
-        4420,
-        2160
-      ]
-    },
-    {
-      "parameters": {
-        "rules": {
-          "values": [
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "leftValue": "={{ $('Loop Over Items').item.json.callback_query.data }}",
-                    "rightValue": "bidirect",
-                    "operator": {
-                      "type": "string",
-                      "operation": "equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "0f5a83b5-770d-499e-807d-86e1f1d080ca",
-                    "leftValue": "={{ $('Loop Over Items').item.json.callback_query.data }}",
-                    "rightValue": "to",
-                    "operator": {
-                      "type": "string",
-                      "operation": "equals",
-                      "name": "filter.operator.equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "3b4dddb2-6a4b-4edb-b730-82901d98c1e7",
-                    "leftValue": "={{ $('Loop Over Items').item.json.callback_query.data }}",
-                    "rightValue": "from",
-                    "operator": {
-                      "type": "string",
-                      "operation": "equals",
-                      "name": "filter.operator.equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "f8de81dd-04d0-4a95-8ca7-8fc5cd94c751",
-                    "leftValue": "={{ $('Loop Over Items').item.json.callback_query.data }}",
-                    "rightValue": "cancel",
-                    "operator": {
-                      "type": "string",
-                      "operation": "equals",
-                      "name": "filter.operator.equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "807643c1-9373-4ca4-90e1-d5b4ffa97ceb",
-                    "leftValue": "={{ $('Loop Over Items').item.json.callback_query.data }}",
-                    "rightValue": "add",
-                    "operator": {
-                      "type": "string",
-                      "operation": "equals",
-                      "name": "filter.operator.equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "a53e029d-5593-4853-a5e2-a1c288da646e",
-                    "leftValue": "={{ $('Loop Over Items').item.json.callback_query.data }}",
-                    "rightValue": "edit",
-                    "operator": {
-                      "type": "string",
-                      "operation": "equals",
-                      "name": "filter.operator.equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "fdfe61a2-b72f-4859-8e6d-9232e8688930",
-                    "leftValue": "={{ $('Loop Over Items').item.json.callback_query.data }}",
-                    "rightValue": "from_tag",
-                    "operator": {
-                      "type": "string",
-                      "operation": "equals",
-                      "name": "filter.operator.equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            },
-            {
-              "conditions": {
-                "options": {
-                  "caseSensitive": true,
-                  "leftValue": "",
-                  "typeValidation": "strict"
-                },
-                "conditions": [
-                  {
-                    "id": "605ac28b-1f8f-49ea-a380-4274f208803a",
-                    "leftValue": "={{ $('Loop Over Items').item.json.callback_query.data }}",
-                    "rightValue": "delete",
-                    "operator": {
-                      "type": "string",
-                      "operation": "equals",
-                      "name": "filter.operator.equals"
-                    }
-                  }
-                ],
-                "combinator": "and"
-              }
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "8ef4e1c4-d835-409d-aa04-64057c3b3a0f",
-      "name": "Switch3",
-      "type": "n8n-nodes-base.switch",
-      "typeVersion": 3,
-      "position": [
-        1200,
-        2740
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "deleteTable",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "forwarding_channels",
-          "mode": "list",
-          "cachedResultName": "forwarding_channels"
-        },
-        "deleteCommand": "delete",
-        "where": {
-          "values": [
-            {
-              "column": "telegram_chat_id",
-              "value": "={{ $json.result.chat.id }}"
-            },
-            {
-              "column": "mode",
-              "condition": "IS NULL"
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "c1d918ef-8f70-4de6-9da5-2d780a7df092",
-      "name": "Postgres5",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        2480,
-        2760
-      ],
-      "alwaysOutputData": true,
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "conditions": {
-          "options": {
-            "caseSensitive": true,
-            "leftValue": "",
-            "typeValidation": "strict"
-          },
-          "conditions": [
-            {
-              "id": "41ba2889-a04f-4539-b03a-a32f1d2ec856",
-              "leftValue": "={{  $input.all().length == 1 && Object.keys($input.all()[0].json).length === 0 }}",
-              "rightValue": "",
-              "operator": {
-                "type": "boolean",
-                "operation": "false",
-                "singleValue": true
-              }
-            }
-          ],
-          "combinator": "and"
-        },
-        "options": {}
-      },
-      "id": "015e7282-3df4-4b03-8170-f38349312de6",
-      "name": "If13",
-      "type": "n8n-nodes-base.if",
-      "typeVersion": 2,
-      "position": [
-        2100,
-        3200
-      ]
-    },
-    {
-      "parameters": {
-        "operation": "editMessageText",
-        "chatId": "={{ $('Loop Over Items').item.json.callback_query.message.chat.id }}",
-        "messageId": "={{ $('Loop Over Items').item.json.callback_query.message.message_id }}",
-        "text": "Нечего менять!",
-        "additionalFields": {}
-      },
-      "id": "0ae9212b-e1df-4b3e-bb40-ff215e3f5c34",
-      "name": "Telegram18",
-      "type": "n8n-nodes-base.telegram",
-      "typeVersion": 1.1,
-      "position": [
-        2440,
-        3440
-      ],
-      "credentials": {
-        "telegramApi": {
-          "id": "6jlhJz2LywWArMtY",
-          "name": "Telegram account"
-        }
-      }
-    },
-    {
-      "parameters": {
-        "operation": "update",
-        "schema": {
-          "__rl": true,
-          "mode": "list",
-          "value": "public"
-        },
-        "table": {
-          "__rl": true,
-          "value": "states",
-          "mode": "list",
-          "cachedResultName": "states"
-        },
-        "columns": {
-          "mappingMode": "defineBelow",
-          "value": {
-            "id": "={{ $('Loop Over Items').item.json.callback_query.from.id }}",
-            "state": 2
-          },
-          "matchingColumns": [
-            "id"
-          ],
-          "schema": [
-            {
-              "id": "id",
-              "displayName": "id",
-              "required": true,
-              "defaultMatch": true,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true,
-              "removed": false
-            },
-            {
-              "id": "state",
-              "displayName": "state",
-              "required": true,
-              "defaultMatch": false,
-              "display": true,
-              "type": "number",
-              "canBeUsedToMatch": true
-            }
-          ]
-        },
-        "options": {}
-      },
-      "id": "d0678053-bc1f-43ca-83c2-e2e7c6c8fc3f",
-      "name": "Postgres27",
-      "type": "n8n-nodes-base.postgres",
-      "typeVersion": 2.3,
-      "position": [
-        2660,
-        3440
-      ],
-      "credentials": {
-        "postgres": {
-          "id": "tqFSeEU5sZr17ZsB",
-          "name": "Postgres account"
-        }
-      }
-    }
-  ],
-  "pinData": {},
-  "connections": {
-    "Telegram Trigger": {
-      "main": [
-        [
-          {
-            "node": "Loop Over Items",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres2": {
-      "main": [
-        [
-          {
-            "node": "Code1",
-            "type": "main",
-            "index": 0
-          },
-          {
-            "node": "Merge",
-            "type": "main",
-            "index": 1
-          }
-        ]
-      ]
-    },
-    "Code1": {
-      "main": [
-        [
-          {
-            "node": "If2",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If2": {
-      "main": [
-        [
-          {
-            "node": "Postgres3",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Merge",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres3": {
-      "main": [
-        [
-          {
-            "node": "Merge",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Merge": {
-      "main": [
-        [
-          {
-            "node": "Code2",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code2": {
-      "main": [
-        [
-          {
-            "node": "Merge1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Merge1": {
-      "main": [
-        [
-          {
-            "node": "Switch",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If": {
-      "main": [
-        [
-          {
-            "node": "Postgres2",
-            "type": "main",
-            "index": 0
-          },
-          {
-            "node": "Merge1",
-            "type": "main",
-            "index": 1
-          }
-        ],
-        [
-          {
-            "node": "Switch1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If1": {
-      "main": [
-        [
-          {
-            "node": "Postgres",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Loop Over Items": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "If8",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Replace Me": {
-      "main": [
-        [
-          {
-            "node": "Loop Over Items",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing2",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres": {
-      "main": [
-        [
-          {
-            "node": "Code",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code": {
-      "main": [
-        [
-          {
-            "node": "If3",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If3": {
-      "main": [
-        [
-          {
-            "node": "Telegram1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram1": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing2",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram2": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing2",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres1": {
-      "main": [
-        [
-          {
-            "node": "Code3",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code3": {
-      "main": [
-        [
-          {
-            "node": "If4",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If4": {
-      "main": [
-        [
-          {
-            "node": "Telegram3",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram25",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram4": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram3": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "No Operation, do nothing1": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "No Operation, do nothing2": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres6": {
-      "main": [
-        [
-          {
-            "node": "Code5",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code5": {
-      "main": [
-        [
-          {
-            "node": "If5",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If5": {
-      "main": [
-        [
-          {
-            "node": "Postgres7",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres7": {
-      "main": [
-        [
-          {
-            "node": "Switch2",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres8": {
-      "main": [
-        [
-          {
-            "node": "Postgres25",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If6": {
-      "main": [
-        [
-          {
-            "node": "Telegram8",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "If7",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If7": {
-      "main": [
-        [
-          {
-            "node": "Postgres9",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram7",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres9": {
-      "main": [
-        [
-          {
-            "node": "Telegram6",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram6": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram7": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram8": {
-      "main": [
-        [
-          {
-            "node": "Postgres10",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres10": {
-      "main": [
-        [
-          {
-            "node": "Postgres12",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If8": {
-      "main": [
-        [
-          {
-            "node": "If",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Postgres11",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram9": {
-      "main": [
-        [
-          {
-            "node": "Postgres5",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres12": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres11": {
-      "main": [
-        [
-          {
-            "node": "Switch3",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram10": {
-      "main": [
-        [
-          {
-            "node": "Postgres15",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres13": {
-      "main": [
-        [
-          {
-            "node": "Telegram11",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram11": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres14": {
-      "main": [
-        [
-          {
-            "node": "If9",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If9": {
-      "main": [
-        [
-          {
-            "node": "Zulip",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Zulip": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres15": {
-      "main": [
-        [
-          {
-            "node": "Postgres13",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If10": {
-      "main": [
-        [
-          {
-            "node": "Telegram2",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram12",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram12": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres16": {
-      "main": [
-        [
-          {
-            "node": "Postgres17",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres17": {
-      "main": [
-        [
-          {
-            "node": "Postgres24",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram13": {
-      "main": [
-        [
-          {
-            "node": "Postgres18",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram14": {
-      "main": [
-        [
-          {
-            "node": "Postgres16",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code6": {
-      "main": [
-        [
-          {
-            "node": "If14",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres18": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If11": {
-      "main": [
-        [
-          {
-            "node": "Telegram17",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "If12",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres19": {
-      "main": [
-        [
-          {
-            "node": "Postgres26",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If12": {
-      "main": [
-        [
-          {
-            "node": "Postgres20",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram16",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres20": {
-      "main": [
-        [
-          {
-            "node": "Telegram15",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram17": {
-      "main": [
-        [
-          {
-            "node": "Postgres21",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres21": {
-      "main": [
-        [
-          {
-            "node": "Postgres22",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres23": {
-      "main": [
-        [
-          {
-            "node": "Postgres19",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram15": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram16": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres22": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres24": {
-      "main": [
-        [
-          {
-            "node": "Code6",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code7": {
-      "main": [
-        [
-          {
-            "node": "If6",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres25": {
-      "main": [
-        [
-          {
-            "node": "Code7",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres26": {
-      "main": [
-        [
-          {
-            "node": "Code8",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code8": {
-      "main": [
-        [
-          {
-            "node": "If11",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If14": {
-      "main": [
-        [
-          {
-            "node": "Telegram13",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram19",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram19": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram20": {
-      "main": [
-        [
-          {
-            "node": "Postgres28",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres28": {
-      "main": [
-        [
-          {
-            "node": "Postgres29",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If15": {
-      "main": [
-        [
-          {
-            "node": "Code9",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Code11",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code9": {
-      "main": [
-        [
-          {
-            "node": "Telegram21",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres29": {
-      "main": [
-        [
-          {
-            "node": "If13",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram21": {
-      "main": [
-        [
-          {
-            "node": "Postgres30",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres30": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres31": {
-      "main": [
-        [
-          {
-            "node": "Postgres32",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres32": {
-      "main": [
-        [
-          {
-            "node": "If16",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If16": {
-      "main": [
-        [
-          {
-            "node": "Telegram22",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Code10",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram22": {
-      "main": [
-        [
-          {
-            "node": "Postgres33",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres33": {
-      "main": [
-        [
-          {
-            "node": "Postgres34",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres34": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram23": {
-      "main": [
-        [
-          {
-            "node": "Postgres35",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres35": {
-      "main": [
-        [
-          {
-            "node": "Telegram24",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram24": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code10": {
-      "main": [
-        [
-          {
-            "node": "If12",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram25": {
-      "main": [
-        [
-          {
-            "node": "No Operation, do nothing1",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code11": {
-      "main": [
-        [
-          {
-            "node": "Telegram5",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Switch1": {
-      "main": [
-        [
-          {
-            "node": "Telegram4",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Postgres1",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Postgres6",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram5": {
-      "main": [
-        [
-          {
-            "node": "Postgres4",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres4": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Switch2": {
-      "main": [
-        [
-          {
-            "node": "Postgres8",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Postgres36",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Postgres14",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Switch": {
-      "main": [
-        [
-          {
-            "node": "If1",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "If10",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Postgres23",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Postgres31",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres36": {
-      "main": [
-        [
-          {
-            "node": "Postgres37",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres37": {
-      "main": [
-        [
-          {
-            "node": "If17",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If17": {
-      "main": [
-        [
-          {
-            "node": "Telegram26",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Code12",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram26": {
-      "main": [
-        [
-          {
-            "node": "Postgres38",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres38": {
-      "main": [
-        [
-          {
-            "node": "Postgres39",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Code12": {
-      "main": [
-        [
-          {
-            "node": "If7",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres39": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Switch3": {
-      "main": [
-        [
-          {
-            "node": "Telegram10",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram10",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram10",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram9",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram14",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram20",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram10",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram23",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres5": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "If13": {
-      "main": [
-        [
-          {
-            "node": "If15",
-            "type": "main",
-            "index": 0
-          }
-        ],
-        [
-          {
-            "node": "Telegram18",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Telegram18": {
-      "main": [
-        [
-          {
-            "node": "Postgres27",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    },
-    "Postgres27": {
-      "main": [
-        [
-          {
-            "node": "Replace Me",
-            "type": "main",
-            "index": 0
-          }
-        ]
-      ]
-    }
-  },
-  "active": false,
-  "settings": {
-    "executionOrder": "v1"
-  },
-  "versionId": "91886d2a-a296-42c6-85eb-767f7c27e800",
-  "meta": {
-    "templateCredsSetupCompleted": true,
-    "instanceId": "c3838c4bc23457af5c8e4c37f46d74f77558026b0ebfbe26ee7dbc3959a1d2cc"
-  },
-  "id": "SzKDHFmZYd7ll6cV",
-  "tags": []
-}
\ No newline at end of file
-- 
GitLab