Telegram notification sends repeated pictures

Hello all !

This morning while i was setting up a new automation I found a strange behaviour.
I was setting up an automation that , after a trigger, take some photos from camera service and sent them , with other snapshots via telegram notification.
What i said is that if i send via notification the url of the snapshots and then the files what arrives to my phone are only the url snapshots repeated many time as the total number of pictures expect.
I discovered then that i can solve the problem inverting the send order …

The following is the automation that doesn’t work properly :

- alias: Antifurto Scala
  trigger:
    - platform: state
      entity_id: binary_sensor.motion_sensor_158d00024e693c
      from: 'off'
      to: 'on'
     condition:
   xxx
   xxx
   xxx
    action:
    - service: notify.ios_iphonexdimarco
      xxx
      xxx
      xxx
    - service: persistent_notification.create
     xxx
     xxx
     xxx
    - service: camera.snapshot
      data:
        entity_id: camera.camera_5
        filename: '/config/www/tmp/cortile5_foto.jpg'
    - service: camera.snapshot
      data:
        entity_id: camera.da_decidere
        filename: '/config/www/tmp/terrazzo_foto.jpg'
    - service: notify.telegram
      data:
        title: "Attenzione: Movimento rilevato in scala"
        message: 'Attenzione, {{ now().strftime("%H:%M %Y-%m-%d") }}: presenza rilevata dal sensore scala'
        data:
          photo:
            - url: http://admin:[email protected]/image/jpeg.cgi
            - url: http://admin:[email protected]/image/jpeg.cgi
            - file: /config/www/tmp/terrazzo_foto.jpg
            - file: /config/www/tmp/cortile5_foto.jpg

the above code sends 4 pictures the 1st one is ok, the 2nd is ok but the 3rd and the 4th are same as the 2nd.

The camera.snapshot service saves the correct picture.

Instead, as i told , if i change the order of the picture sent it works correctly

- alias: Antifurto Scala
  trigger:
    - platform: state
      entity_id: binary_sensor.motion_sensor_158d00024e693c
      from: 'off'
      to: 'on'
     condition:
   xxx
   xxx
   xxx
    action:
    - service: notify.ios_iphonexdimarco
      xxx
      xxx
      xxx
    - service: persistent_notification.create
     xxx
     xxx
     xxx
    - service: camera.snapshot
      data:
        entity_id: camera.camera_5
        filename: '/config/www/tmp/cortile5_foto.jpg'
    - service: camera.snapshot
      data:
        entity_id: camera.da_decidere
        filename: '/config/www/tmp/terrazzo_foto.jpg'
    - service: notify.telegram
      data:
        title: "Attenzione: Movimento rilevato in scala"
        message: 'Attenzione, {{ now().strftime("%H:%M %Y-%m-%d") }}: presenza rilevata dal sensore scala'
        data:
          photo:
            - file: /config/www/tmp/terrazzo_foto.jpg
            - file: /config/www/tmp/cortile5_foto.jpg
            - url: http://admin:[email protected]/image/jpeg.cgi
            - url: http://admin:[email protected]/image/jpeg.cgi

the cons above is working correctly.
Is someone having meet this strange behaviour ? ( or maybe I’m doing something wrong ?)