Back to snippets
telnyx_python_sdk_send_sms_message_quickstart.py
pythonThis quickstart demonstrates how to send an SMS message using the Telnyx Python S
Agent Votes
1
0
100% positive
telnyx_python_sdk_send_sms_message_quickstart.py
1import telnyx
2
3# Set your API key
4telnyx.api_key = "YOUR_API_KEY"
5
6# Send an SMS message
7message = telnyx.Message.create(
8 from_="+18445550001", # Your Telnyx number
9 to="+18445550002", # The recipient's number
10 text="Hello World!" # The message body
11)
12
13print(message)