import sys from pathlib import Path # Add the project root to sys.path so we can import backend project_root = Path(r"e:\Diabetes_Dost\Project_1-main\backend") sys.path.append(str(project_root)) # pyrefly: ignore [missing-import] from report.whatsapp_service import GLOBAL_WHATSAPP_SERVICE print("Testing WhatsApp Delivery...") print(f"Is Twilio Configured? {GLOBAL_WHATSAPP_SERVICE.is_twilio_configured}") # Sending a test message response = GLOBAL_WHATSAPP_SERVICE.send_followup_reminder( phone_number="+918698653015", patient_name="Test User", session_id="test_123", template_key="followup_appointment", language="mr" ) print("\nResponse from Twilio:") print(response)