As tittle says, I can’t send the picture to the corresponding subtopic, instead the automations sends it to the general chat. I think there is an issue with the data of the channel ID.
When I send a message trhough servicies I am able to send it to the right subtopic but I can;t achive the same thing when sending the photo.
successfully message trhough service:
message: "Test al subtema"
data:
message_thread_id: 4214
Failed automation photo:
alias: Foto diaria Sala Superior
description: Snapshot diario a las 10:00
triggers:
- trigger: time
at: "10:00:00"
conditions: []
actions:
- variables:
foto_path: >-
/media/sala_superior/ciclo_1_25-11-07/{{
now().strftime('%Y-%m-%d_%H-%M') }}.jpg
caption_txt: Sala Superior – {{ now().strftime('%Y-%m-%d %H:%M') }}
- action: camera.snapshot
target:
entity_id: camera.c310_mainstream
data:
filename: "{{ foto_path }}"
- delay: "00:00:03"
- action: telegram_bot.send_photo
data:
chat_id: -1001655362132
message_thread_id: 4214
file: "{{ foto_path }}"
caption: "{{ caption_txt }}"
mode: single
thank yyou very much guys.