[
  {
    "type": "repeater",
    "id": "telegram-numbers",
    "title": "Synchronization",
    "content": "Enter the bot token and click the button to synchronize the Telegram bot. Localhost cannot receive messages.",
    "help": "https://board.support/docs/#telegram",
    "items": [
      {
        "type": "password",
        "id": "telegram-numbers-token",
        "name": "Token"
      },
      {
        "type": "select-ajax",
        "id": "telegram-numbers-department-id",
        "name": "Department"
      },
      {
        "type": "select-checkbox",
        "id": "telegram-numbers-tags",
        "name": "Tags",
        "value": []
      },
      {
        "type": "text",
        "id": "telegram-numbers-label",
        "name": "Label"
      },
      {
        "type": "button",
        "id": "telegram-numbers-button",
        "name": "Synchronize",
        "button-text": "Synchronize now",
        "button-url": "#"
      }
    ]
  },
  {
    "type": "checkbox",
    "id": "tg-disable-chatbot",
    "title": "Disable chatbot",
    "content": "Disable the chatbot for this channel only."
  },
  {
    "type": "checkbox",
    "id": "telegram-disable-start",
    "title": "Ignore start message",
    "content": "Ignore the automatic start message sent by Telegram when a user begins a chat."
  },
  {
    "type": "multi-input",
    "id": "telegram-welcome",
    "title": "Welcome message",
    "content": "Message sent when the user sends the start message.",
    "value": [
      {
        "type": "checkbox",
        "id": "telegram-welcome-active",
        "title": "Active"
      },
      {
        "type": "textarea",
        "id": "telegram-welcome-text",
        "title": "Message"
      }
    ]
  },
  {
    "type": "multi-input",
    "id": "telegram-notification",
    "title": "Notifications",
    "content": "Send a notification to Telegram when a new message is received. You can use text and the following merge fields: {message}, {sender_name}, {sender_email}, {conversation_link}, {attachments}",
    "help": "https://board.support/docs/#telegram-notifications",
    "value": [
      {
        "type": "checkbox",
        "id": "telegram-notification-active",
        "title": "Active"
      },
      {
        "type": "checkbox",
        "id": "telegram-notification-all",
        "title": "All messages"
      },
      {
        "type": "text",
        "id": "telegram-notification-channel-name",
        "title": "Channel name"
      },
      {
        "type": "textarea",
        "id": "telegram-notification-message",
        "title": "Message",
        "placeholder": "New message from {sender_name}: {message}{attachments}. Reply {conversation_link}."
      }
    ]
  },
  {
    "type": "text",
    "id": "tg-ban",
    "title": "User ban",
    "content": "Block users by entering Telegram usernames, separated by commas."
  }
]