{
  "openruna_format": "flow-graph-v1",
  "title": "0383_Telegram_Wait_Create_Webhook",
  "slug": "0383-telegram-wait-create-webhook",
  "source_filename": "0383_Telegram_Wait_Create_Webhook.json",
  "nodes": [
    {
      "id": "New User ?",
      "name": "New User ?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Format",
      "name": "Format",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Bot-Fields",
      "name": "Bot-Fields",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Create Topic (Chat Ticket)",
      "name": "Create Topic (Chat Ticket)",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Save Topic ID",
      "name": "Save Topic ID",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Get User Chat Topic",
      "name": "Get User Chat Topic",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Forward New Message",
      "name": "Forward New Message",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "IF No Topic Created",
      "name": "IF No Topic Created",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "ReCreate Topic (Chat Ticket)",
      "name": "ReCreate Topic (Chat Ticket)",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "ReSave Topic ID",
      "name": "ReSave Topic ID",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Update User Data",
      "name": "Update User Data",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Save User Data",
      "name": "Save User Data",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Support Forum",
      "name": "Support Forum",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "From Ticket",
      "name": "From Ticket",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Forward Support Reply To User",
      "name": "Forward Support Reply To User",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "IF Topic Created",
      "name": "IF Topic Created",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Forward New Message to the recrated topic",
      "name": "Forward New Message to the recrated topic",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "No Operation, do nothing",
      "name": "No Operation, do nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Check User in Database",
      "name": "Check User in Database",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Send User Ticket Created Notification",
      "name": "Send User Ticket Created Notification",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Bot-Config",
      "name": "Bot-Config",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Telegram-Bot",
      "name": "Telegram-Bot",
      "integration": "telegram",
      "kind": "trigger"
    },
    {
      "id": "1st",
      "name": "1st",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Split In Batches1",
      "name": "Split In Batches1",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Wait1",
      "name": "Wait1",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Format Users",
      "name": "Format Users",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Broadcast Channel Post into Users",
      "name": "Broadcast Channel Post into Users",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Set Blocked Member",
      "name": "Set Blocked Member",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "IF Verified Channel",
      "name": "IF Verified Channel",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Filter Blocked Users",
      "name": "Filter Blocked Users",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Retrieve all users in DB",
      "name": "Retrieve all users in DB",
      "integration": "redis",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "1st",
      "to": "Check User in Database",
      "label": "supergroup"
    },
    {
      "from": "1st",
      "to": "Support Forum",
      "label": "channel"
    },
    {
      "from": "1st",
      "to": "IF Verified Channel"
    },
    {
      "from": "Wait1",
      "to": "Split In Batches1"
    },
    {
      "from": "Format",
      "to": "Bot-Fields"
    },
    {
      "from": "Bot-Config",
      "to": "Format"
    },
    {
      "from": "Bot-Fields",
      "to": "1st"
    },
    {
      "from": "New User ?",
      "to": "Save User Data"
    },
    {
      "from": "New User ?",
      "to": "Update User Data"
    },
    {
      "from": "From Ticket",
      "to": "Forward Support Reply To User"
    },
    {
      "from": "From Ticket",
      "to": "IF Topic Created"
    },
    {
      "from": "Format Users",
      "to": "Filter Blocked Users"
    },
    {
      "from": "Telegram-Bot",
      "to": "Bot-Config"
    },
    {
      "from": "Save Topic ID",
      "to": "Forward New Message"
    },
    {
      "from": "Support Forum",
      "to": "From Ticket"
    },
    {
      "from": "Save User Data",
      "to": "Create Topic (Chat Ticket)"
    },
    {
      "from": "ReSave Topic ID",
      "to": "Forward New Message to the recrated topic"
    },
    {
      "from": "IF Topic Created",
      "to": "Send User Ticket Created Notification"
    },
    {
      "from": "Update User Data",
      "to": "Get User Chat Topic"
    },
    {
      "from": "Split In Batches1",
      "to": "Broadcast Channel Post into Users"
    },
    {
      "from": "Set Blocked Member",
      "to": "Split In Batches1"
    },
    {
      "from": "Forward New Message",
      "to": "No Operation, do nothing"
    },
    {
      "from": "Forward New Message",
      "to": "IF No Topic Created"
    },
    {
      "from": "Get User Chat Topic",
      "to": "Forward New Message"
    },
    {
      "from": "IF No Topic Created",
      "to": "ReCreate Topic (Chat Ticket)"
    },
    {
      "from": "IF No Topic Created",
      "to": "No Operation, do nothing"
    },
    {
      "from": "IF Verified Channel",
      "to": "Retrieve all users in DB"
    },
    {
      "from": "IF Verified Channel",
      "to": "No Operation, do nothing"
    },
    {
      "from": "Filter Blocked Users",
      "to": "Split In Batches1"
    },
    {
      "from": "Check User in Database",
      "to": "New User ?"
    },
    {
      "from": "Retrieve all users in DB",
      "to": "Format Users"
    },
    {
      "from": "Create Topic (Chat Ticket)",
      "to": "Save Topic ID"
    },
    {
      "from": "ReCreate Topic (Chat Ticket)",
      "to": "ReSave Topic ID"
    },
    {
      "from": "Forward Support Reply To User",
      "to": "No Operation, do nothing"
    },
    {
      "from": "Broadcast Channel Post into Users",
      "to": "Wait1"
    },
    {
      "from": "Broadcast Channel Post into Users",
      "to": "Set Blocked Member"
    },
    {
      "from": "Send User Ticket Created Notification",
      "to": "No Operation, do nothing"
    },
    {
      "from": "Forward New Message to the recrated topic",
      "to": "No Operation, do nothing"
    }
  ]
}