From 9cd5e9584a4cb859eb92672e3fb4c19ca93634d3 Mon Sep 17 00:00:00 2001 From: Erik Harding Date: Mon, 22 Jul 2024 13:27:33 +0200 Subject: [PATCH] Add some debug info --- ndoh_hub/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ndoh_hub/utils.py b/ndoh_hub/utils.py index 50cce406..79bbd3cf 100644 --- a/ndoh_hub/utils.py +++ b/ndoh_hub/utils.py @@ -261,6 +261,10 @@ def send_whatsapp_template_message( response_data = response.json() + print(">>> send_whatsapp_template_message") + print(f"save_status_record: {save_status_record}") + print(response_data) + status_id = None prefered_chanel = "WhatsApp" if "messages" not in response_data: @@ -273,4 +277,6 @@ def send_whatsapp_template_message( message_id=message_id ).id + print(f"status_id: {status_id}") + return prefered_chanel, status_id