Can not send photo to telegram notifier using notify service in Node Red

Anyone was able to do that?
i can send a successful image to home assistant companion app but i am probably missing something to send out to telegram.

that’s the JSON syntax i am using with “call-service” node - notify domain:

{
“message”: “Motion Detected”,
“title”: “RING DOORBELL”,
“data”: {
“ttl”: 0,
“sticky”: “true”,
“color”: “#ff9900”,
“priority”: “high”,
“notification_icon”: “mdi:doorbell-video”,
“image”: “/local/nvr/ring_snapshot3.png”
}
}

I am able to send photo through normal HA automation using YAML but i do not know how i can do the same using node-red:

**This example works fine!
service: notify.telegram_bot_ran
data:
message: test
title: test
data:
photo:
- file: /config/www/nvr/ring_snapshot3.png
caption: test@motion

Many thanks!!

Try

{
“message”: “Motion Detected”,
“title”: “RING DOORBELL”,
“data”: {
“ttl”: 0,
“sticky”: “true”,
“color”: “#ff9900”,
“priority”: “high”,
“notification_icon”: “mdi:doorbell-video”,
“image”: “/config/www/nvr/ring_snapshot3.png”
}
}

and

service: notify.telegram_bot_ran
data:
message: test
title: test
data:
photo:
- file: /homeassistant/www/nvr/ring_snapshot3.png
caption: test@motion

Thanks!

unfortunately i already tried that. also direct link to “http://” photo.
none works

I use my flow like this. And it’s working. All you have to do is fill in your chatID and use BotFather on Telegram to create your bot and get your token…

[{"id":"bc451fd3e63a10f4","type":"api-call-service","z":"2b7eb6af41978edb","name":"","server":"","version":5,"debugenabled":false,"domain":"camera","service":"snapshot","areaId":[],"deviceId":[],"entityId":["camera.rua_joao_cabral_2"],"data":"{     \"filename\": \"/config/www/imgs/cameras/frente2.jpg\" }","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":230,"y":80,"wires":[["56e6cc9d55a23609"]]},{"id":"56e6cc9d55a23609","type":"telegrambot-payload","z":"2b7eb6af41978edb","name":"Telegram Grupo","bot":"7b7555e1899dafc4","chatId":"ChatID","sendMethod":"sendPhoto","payload":"{\n    \"photo\" : \"/homeassistant/www/imgs/cameras/frente2.jpg\",\n    \"caption\" : \"Foto (Baixa Resolução) da Câmera da Frente\"\n}","x":460,"y":80,"wires":[[]]},{"id":"7b7555e1899dafc4","type":"telegrambot-config","botname":"creat your botFather","usernames":"","chatIds":"","pollInterval":"300"}]

I was eventually able to send photo using “telegram_bot” to any chatid needed using “target”: “chatid_number”

flow attached

[
    {
        "id": "2bc32e7b10c3476d",
        "type": "api-call-service",
        "z": "2de7d6a532f36969",
        "name": "",
        "server": "c55e4980.37cb28",
        "version": 5,
        "debugenabled": false,
        "domain": "telegram_bot",
        "service": "send_photo",
        "areaId": [],
        "deviceId": [],
        "entityId": [],
        "data": "{\"file\":\"/config/www/nvr/ring_snapshot3.png\",\"caption\":\"Motion@RING\",\"target\":\"chatid\"}",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 750,
        "y": 1620,
        "wires": [
            []
        ]
    },
    {
        "id": "ee3f416fd90a9e0a",
        "type": "inject",
        "z": "2de7d6a532f36969",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 540,
        "y": 1620,
        "wires": [
            [
                "2bc32e7b10c3476d"
            ]
        ]
    },
    {
        "id": "c55e4980.37cb28",
        "type": "server",
        "name": "Home Assistant",
        "addon": true
    }
]```