Help with automation to get image from camera to telgram

Hey.

I am trying to get a picture from the my camera to the telegram via xiaomi sensor has opened.

1.I have all motificat to telegram set.
2.All my Notifications form xiaomi sensor work with a telegram .
3.i have the URL of my camera to get the image.

Thanks for the help.

Any one can help with this?

Im try to get like this… did not woeking for me :frowning:

  alias: 'Alert Movement At Front Door '
  trigger:
  - entity_id: binary_sensor.door_window_sensor_158d0002d7b41e
    from: 'off'
    platform: state
    to: 'on'
  condition: []  
  action:
    - data:
      entity_id: camera.front_camera
      filename: /config/pics/entrance.jpg
    service: camera.snapshot
  service: notify.telegram_cam
  data:
    title: Send an images
    message: "That's an example that sends an image."
    data:
      photo:
        - file: /config/pics/entrance.jpg
          caption: Picture Title xy

Hi, did you resolve this?I have the same issue.