From a3735f505ca3d9b6459951d1b85c51e7212f6c31 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Wed, 4 Mar 2026 09:43:34 -0500 Subject: [PATCH] Refactor BearClaw automation to replace Telegram script calls with REST command integration. Updated message formatting to include job ID and user context for improved interaction handling. --- config/packages/bearclaw.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config/packages/bearclaw.yaml b/config/packages/bearclaw.yaml index 736a6fab..4e5c18c8 100644 --- a/config/packages/bearclaw.yaml +++ b/config/packages/bearclaw.yaml @@ -155,16 +155,20 @@ automation: - condition: template value_template: "{{ action_name == 'yes' }}" sequence: - - service: script.joanna_send_telegram + - service: rest_command.bearclaw_command data: - message: "Great, I received your confirmation." + text: "{{ 'yes ' ~ job_id if job_id | length > 0 else 'Yes.' }}" + user: "{{ from_user }}" + source: telegram_callback - conditions: - condition: template value_template: "{{ action_name == 'no' }}" sequence: - - service: script.joanna_send_telegram + - service: rest_command.bearclaw_command data: - message: "Understood. I did not get confirmation." + text: "{{ 'no ' ~ job_id if job_id | length > 0 else 'No.' }}" + user: "{{ from_user }}" + source: telegram_callback default: - service: script.joanna_send_telegram data: