Selecting all json values of the same type with an expressiom

Hi, i just started using n8n and have it setup on my raspberry. So far it looks really interesting.
However i’ve gotten stuck with my first project: The idea is to have n8n send me a list of all files on my server via telegram. I have succesfully setup a telegram bot and the sftp node. The list it returns looks like this:

{
"type": "d",
"name": "Directory 1",
"size": 4096,
"modifyTime": "2021-04-04T18:16:19.000Z",
"accessTime": "2021-04-16T14:45:14.000Z",
"rights": {
"user": "rwx",
"group": "rx",
"other": "rx"
},
"owner": 0,
"group": 0,
"path": "/path1"
},
{
"type": "-",
"name": "File 1",
"size": 351760868,
"modifyTime": "2021-04-05T07:14:55.000Z",
"accessTime": "2021-04-06T16:03:53.000Z",
"rights": {
"user": "rw",
"group": "r",
"other": "r"
},
"owner": 0,
"group": 0,
"path": "/path2"
},

Now when i select the name field as an expression ( {{$node[“FTP”].json[“name”]}} ) the message i receive only contains the first item of the list. How do i make it send me the whole list?

Thanks in Advance

Welcome to the community.

Where are you using the expression? Can you share your workflow?

Thank you for your quick answer.
Here is the json: i hope it helps

{
  "name": "First Project",
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        390,
        350
      ],
      "disabled": true
    },
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1,
      "position": [
        400,
        120
      ],
      "webhookId": "id",
      "credentials": {
        "telegramApi": "api"
      }
    },
    {
      "parameters": {
        "protocol": "sftp",
        "operation": "list",
        "path": "/mypath",
        "recursive": true
      },
      "name": "FTP",
      "type": "n8n-nodes-base.ftp",
      "typeVersion": 1,
      "position": [
        600,
        120
      ],
      "credentials": {
        "sftp": "myserver"
      }
    },
    {
      "parameters": {
        "chatId": "={{$node[\"Telegram Trigger\"].json[\"message\"][\"chat\"][\"id\"]}}",
        "text": "={{$node[\"FTP\"].json[\"name\"]}}",
        "additionalFields": {}
      },
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "position": [
        770,
        23
      ],
      "credentials": {
        "telegramApi": "api"
      }
    }
  ],
  "connections": {
    "FTP": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "FTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {},
  "id": "4"
}

Unfortunately I have not found a way to attach the file

Anybody has an idea?

You have to change your expression on the Node “Telegram” for “Chat ID” from:

{{$node["Telegram Trigger"].json["message"]["chat"]["id"]}}

to

{{$item(0).$node["Telegram Trigger"].json["message"]["chat"]["id"]}}

You can find more information about that at the posts linked here.