问题描述
我收到此意外错误,但没有解释有关用于 WhatsApp 消息传递的 Twilio API:-
print("Please enter a message.")
body_of_the_message = input()
account_sid = mysid
auth_token = myauthtoken
client = Client(account_sid,auth_token)
message = client.messages.create(from_='whatsapp:mytwilionum',body=(body_of_the_message),to='whatsapp:+myphone' )
sid = message.sid
print(f"The message SID is:- {sid}")
当我运行这个时,我传入了“Hi there”。用于输入。
这是我得到的回应:-
The message SID is:- (sid)
我没有看到正在发送的消息的任何通知,即使我查看聊天记录也是如此。请帮我解决这个问题。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)