mindeasechatbot / message.py
venkataseetharam's picture
Upload 10 files
3a6775a verified
raw
history blame
1.02 kB
from twilio.rest import Client
import keys
def contact(name):
client = Client(keys.account_sid, keys.auth_token)
mes="Name:"+name+"""
Phone Number: 1234567890
Pincode: 600127
The above-listed individual is currently experiencing severe emotional distress and has expressed thoughts of self-harm or suicide in our recent chat conversation. We have taken immediate steps to reassure the user, provided information about local crisis hotlines, and encouraged them to seek professional help. However, due to the seriousness of the situation, we kindly request your immediate intervention to ensure their safety.
Your prompt attention to this matter is greatly appreciated.
This message was autogenerated by InnerVerse.
"""
message = client.messages.create(
body=mes,
from_=keys.twilio_number,
to=keys.target_number
)
print("got called")
#print(message.body)