Initial commit - Diabetic Dost
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user