Spaces:
Running
Running
Commit
·
0177ce4
1
Parent(s):
3d1155f
update message
Browse files
app.py
CHANGED
|
@@ -139,13 +139,13 @@ def send_message(user_input):
|
|
| 139 |
try:
|
| 140 |
# Create the email message
|
| 141 |
#print("sending mail")
|
| 142 |
-
print("sending message")
|
| 143 |
#proxy_client = TwilioHttpClient()
|
| 144 |
#proxy_client.session.proxies = {'https': os.environ['https_proxy']}
|
| 145 |
client = Client(account_sid, auth_token)
|
| 146 |
message = client.messages.create(
|
| 147 |
from_='whatsapp:+14155238886',
|
| 148 |
-
body=
|
| 149 |
to=f'whatsapp:{PHONE}'
|
| 150 |
)
|
| 151 |
|
|
|
|
| 139 |
try:
|
| 140 |
# Create the email message
|
| 141 |
#print("sending mail")
|
| 142 |
+
print(f"sending message :{user_input}")
|
| 143 |
#proxy_client = TwilioHttpClient()
|
| 144 |
#proxy_client.session.proxies = {'https': os.environ['https_proxy']}
|
| 145 |
client = Client(account_sid, auth_token)
|
| 146 |
message = client.messages.create(
|
| 147 |
from_='whatsapp:+14155238886',
|
| 148 |
+
body=user_input,
|
| 149 |
to=f'whatsapp:{PHONE}'
|
| 150 |
)
|
| 151 |
|