Sending image with Whatsapp AddOn

It seems there are a couple different options to send whatsapp via HA. I might be wrong, but I am under the impression that if there is an “addon” I should use that instead of a HACS.

That said, I have the Whatsapp AddOn by
giuseppecastaldo from this github link GitHub - giuseppecastaldo/ha-addons: Home Assistant Whatsapp Add-on

I can send text messages without a problem, but now trying to send an image and can’t seem to figure it out.

Documentation gives this example:

service: whatsapp.send_message
data:
  clientId: default
  to: [email protected]
  body:
    image:
      url: "https://dummyimage.com/600x400/000/fff.png"
    caption: Simple text

I am able to get the message with that dummy picture on the example if I put my correct phone number on the “to” section. I can get the URL of the picture I want to send, stored in “media” folder of HA, but that URL ONLY works on a browser where I have an active session with HA. If I try to view the same URL on firefox where I am not logged in to anything, I get “401: Unauthorized”

Is there a way to load the file from HA instead of using a public url?

Ok so I figured it out. On my configuration.yaml I included

homeassistant:
  allowlist_external_dirs:
    - '/config/www/snapshots' 

When I take the snapshot I save it to

/config/www/snapshots/image.jpg

and to send the whatsapp for the URL i use:

url: "http://YourHomeIP:8123/local/snapshots/image.jpg"

One thing that is confusing to me is the “config” folder. When I use FileEditor to navigate my files I don’t have/see a config folder. Instead it reads homeassistant, but if you try to use homeassistant/www/snapshots/image.jpgit won’t work