This repository has been archived on 2025-01-14. You can view files and clone it, but cannot push or open issues or pull requests.
messagearr/app/create_message.py
2023-09-16 21:52:24 -05:00

11 lines
309 B
Python

import telnyx
from initialize_variables import sms_service, sms_api_key, api_number
def create_message(number, message):
if sms_service == 'telnyx':
telnyx.api_key = sms_api_key
telnyx.Message.create(
from_=api_number,
to=number,
text=message
)