diff --git a/cloud/APIs/twilio.py b/cloud/APIs/twilio.py index 3df7ef9..1965429 100644 --- a/cloud/APIs/twilio.py +++ b/cloud/APIs/twilio.py @@ -8,8 +8,6 @@ def send_alert_sms(to_phone: str, room_title: str, room_link: str = None, client account_sid = os.environ.get("TWILIO_SID") auth_token = os.environ.get("TWILIO_AUTH_TOKEN") from_phone = os.environ.get("TWILIO_PHONE_NUMBER") # Requires your Twilio sender phone number - print(account_sid) - print(auth_token) if not account_sid or not auth_token or not from_phone: print("Twilio environment variables (TWILIO_SID, TWILIO_ACCOUNT_SECRET, TWILIO_PHONE_NUMBER) missing.") @@ -38,9 +36,9 @@ def send_alert_sms(to_phone: str, room_title: str, room_link: str = None, client try: client = Client(account_sid, auth_token) message = client.messages.create( - to="+32492857876", - from_="+4915888620339", - body="sms_account_alerts", + to=to_phone, + from_=from_phone, + body="sms_internal_alerts", ) print(f"SMS sent successfully to {to_phone}. Message SID: {message.sid}") return True