()
| 12 | |
| 13 | |
| 14 | def message(): |
| 15 | global body, to |
| 16 | account_sid = "Your_account_sid" # Your account sid |
| 17 | auth_token = "Your_auth_token" # Your auth token |
| 18 | client = Client(account_sid, auth_token) |
| 19 | msg = client.messages.create( |
| 20 | from_="Twilio_number", # Twilio number |
| 21 | body=body, |
| 22 | to=to, |
| 23 | ) |
| 24 | print(msg.sid) |
| 25 | confirmation_label.config(text="Message Sent!") |
| 26 | |
| 27 | |
| 28 | try: |